Socket
Book a DemoInstallSign in
Socket

simple-twitter-scraper-2

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

simple-twitter-scraper-2

Simplify twitter scraper using adapted twitter-scraper package.

0.0.1
latest
Source
npmnpm
Version published
Weekly downloads
3
200%
Maintainers
1
Weekly downloads
 
Created
Source

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

Keywords

twitter

FAQs

Package last updated on 19 Sep 2018

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.