@leny/twitter-scraper

1.0.0 • Public • Published

@leny/twitter-scraper

NPM version Downloads counter

A simple scraper to gather users' stats from twitter profile.


Usage

Installation

To use @leny/twitter-scraper, you must at first install it.

npm install --save @leny/twitter-scraper

Usage

Simply import and call the function with the twitter username you want to scrap stats.

	import scraper from "@leny/twitter-scraper";
	
	(async () => {
		const {
			tweets,
			following,
			followers,
			favorites,
		} = await scraper("leny_be");
	})();

The function returns and object with four properties, which are numbers or null, if the parsing fails.

Contributing

In lieu of a formal styleguide, take care to maintain the existing coding style.

License

Copyright ©2019 Leny
Licensed under the MIT license.

Package Sidebar

Install

npm i @leny/twitter-scraper

Weekly Downloads

0

Version

1.0.0

License

MIT

Unpacked Size

6.52 kB

Total Files

6

Last publish

Collaborators

  • leny