Skip to content

mrlee23/SimpleTwitterScraper

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Collecting tweets with keyword and date.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published