0.1.2 • Published 8 years ago

twitter-pic-downloader v0.1.2

Weekly downloads
3
License
Apache-2.0
Repository
github
Last release
8 years ago

twitter-pic-downloader

Downloads images from some twitter stream

Install cli tool

npm install twitter-pic-downloader -g

Configure .env file

1) Create an .env file:

touch .env
# or use wget
wget https://raw.githubusercontent.com/saitodisse/twitter-stream-cli/master/.env-example -O .env

2) Create an app on https://apps.twitter.com/ and put keys on .env file:

# Twitter API keys: https://apps.twitter.com
CONSUMER_KEY=__XXX__
CONSUMER_SECRET=__XXX__
TOKEN=__XXX__
TOKEN_SECRET=__XXX__

# [optional] Firebase URL: https://www.firebase.com/account
FIREBASE_URL=https://__XXX__.firebaseio.com

Run

Track "photo" and save to "/tmp" folder

# Filter tweets: #photo
# Save to images to `/tmp` folder
$ twitter-pic-downloader "#photo" --save /tmp

# Filter tweets: foto
# Save to images to `/tmp` folder
# Output partial tweets even without images
# Filter language: pt
$ twitter-pic-downloader foto --save /tmp --show-all --lang pt

Devs

npm install
npm test
node ./bin/twitter-pic-downloader.js -h