twitter-followers-scraper

1.0.1 • Public • Published

Twitter-Followers-Scraper is a nodejs package to scrape followers of a twitter user using browser automation. It currently runs only on windows.

Installation

npm install twitter-followers-scraper

Example

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

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

function get_data(response){
	var data=response["body"]
	console.log("data",data)
	//data=[{"Link": "Link", "Info": "Info"},{},...]
}
function fetch_followers(){
	twitter.get_followers(get_data)
}
twitter.open("https://twitter.com/narendramodi/followers",fetch_followers)

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-followers-scraper");

Login with credentials

twitter.login(username,password)

Login with cookies

twitter.login_cookie(list_of_cookies)

Get Followers

twitter.get_followers()

Cookies

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

Contact Us

Package Sidebar

Install

npm i twitter-followers-scraper

Weekly Downloads

1

Version

1.0.1

License

ISC

Unpacked Size

1.99 kB

Total Files

3

Last publish

Collaborators

  • datakund