0.0.1 • Published 6 years ago

simple-twitter-scraper-2 v0.0.1

Weekly downloads
4
License
MIT
Repository
github
Last release
6 years ago

Simple Twitter Scraper

This package is adapted from twitter-scraper. It focused on collecting tweets between start to end date from specific keyword. Also, the output data properties are same as GetOldTweets-python package. Output file format is json.

Output Data

{
	"id": "123456789012345678",
	"permalink": "https://twitter.com/username/status/123456789012345678",
	"username": "username",
	"text": "@abcd @efgh #This is #tweet text",
	"datetime": "2017-01-01 11:11",
	"retweets": 30,
	"favorites": 20,
	"mentions": "@abcd @efgh",
	"hashtags": "#This #tweet",
	"geo": ""
}

How to use

simple-twitter-scraper <keyword> <first date(YYYY-MM-DD)> <last date(YYYY-MM-DD)> <output directory>

> npm install -g simple-twitter-scraper
> mkdir tmp_twitter
> cd tmp_twitter
> simple-twitter-scraper obama 2017-01-01 2017-02-01 ./

Example

Example on Youtube