2.2.0 • Published 8 years ago

twitter-scraper-cli v2.2.0

Weekly downloads
2
License
MIT
Repository
-
Last release
8 years ago

Twitter Scraper CLI

Command Line Lnterface for https://github.com/Volox/TwitterScraper

Usage

# Will pipe to the stdout the result
twitter-scraper-cli -q "#node"

# Will save the results to the specified mongo db/collection
twitter-scraper-cli -q "#node" -M ../mongo.json

# Will enrich each tweet with the full data from Twitter and pipe to the stdout the result
twitter-scraper-cli -q "#node" -T twitter.json

Options

Query

The query can be specified inline via the -q argument, or using the -Q flag and specifing the file containing the query.

FlagLong flagDescriptionRequiredDefault
-Q--query-fileTwitter query fileYesN/D
OR
-q--queryTwitter queryYesN/D

Mongo options Optional

The mongo options can be specified in a json file or via command line arguments.

If either -M or -d flags are specified then the data will be saved in the corresponding configuration.

FlagLong flagDescriptionRequiredDefault
-M--mongoMongo configuration fileYesN/D
OR
-m--hostMongo hostNolocalhost
-p--portMongo portNo27017
-d--databaseMongo database nameYesN/D
-c--collectionMongo collection nameNotweets

Twitter options Optional

The Twitter options can be specified in a json file or via command line arguments.

If either -T or all the other twitter flags (-k -s -t -y) are specified then the data will be enriched with the full tweet info.

FlagLong flagDescriptionRequiredDefault
-T--twitterTwitter config fileYesN/D
OR
-k--keyTwitter keyYesN/D
-s--secretTwitter secretYesN/D
-t--tokenTwitter access tokenYesN/D
-y--token-secretTwitter access token secretYesN/D

LICENSE

MIT

2.2.0

8 years ago

2.1.1

8 years ago

2.1.0

8 years ago

2.0.0

8 years ago

1.1.0

8 years ago

1.0.3

8 years ago

1.0.2

8 years ago

1.0.1

8 years ago

1.0.0

8 years ago