Nightly Pocket Measurement

    twitter-profile-scraper

    1.0.0 • Public • Published

    Twitter-Profile-Scraper is a nodejs package to scrape user profile data on twitter using browser automation. It currently runs only on windows.

    Installation

    npm install twitter-profile-scraper

    Example

    In this example we first import package, then we login with cookies and scrape data.

    var twitter=require("twitter-profile-scraper");
    
    function get_data(response){
    	var data=response["body"]
    	console.log("data",data)
    	//data={"Joined": "Joined", "Info": "Info", "DOB": "DOB", "Following": "Following", "Website": "Website", "Followers": "Followers", "Location": "Location", "Twitter_Id": "Twitter_Id", "Name": "Name", "TweetsCount": "TweetsCount"}
    }
    function profile(){
    	twitter.get_user('profile_url',get_data)
    }
    twitter.login_cookie(cookie_list,profile)

    DataKund

    datakund is needed for browser automation. As soon as this package is imported in code, automated browser will open up.

    Import

    var twitter=require("twitter-profile-scraper");

    Login with credentials

    twitter.login(username,password)

    Login with cookies

    twitter.login_cookie(list_of_cookies)

    Get Profile Data

    twitter.get_user('profile_url',get_data)

    Cookies

    To login with cookies Edit this Cookie Extension can be added to browser

    Contact Us

    Install

    npm i twitter-profile-scraper

    DownloadsWeekly Downloads

    30

    Version

    1.0.0

    License

    ISC

    Unpacked Size

    2.13 kB

    Total Files

    3

    Last publish

    Collaborators

    • datakund