TwitterScraper
Retrieve basic tweet data based on the specified query. Requires NodeJS 4+.
Usage
'use strict'; let stream = ;let Scraper = Scraper; let query = 'from:riccardovolo since:2015-05-01 until:2015-05-02';let scraper = query ;let toConsole = objectMode: true { console; return ; } scraper; // Start the scraperscraperstart;
Stream data
The data in the stream have the following format:
"id": "123123131312" // Tweet id as string "text": "tweet tweeeet" // Text "timestamp": 123123123 // Unix seconds
Options
The start
method can accept 2 parameters first
and last
Debug
The lib uses the debug
lib (see here) use the DEBUG
env variable to control the logs.