Skip to content

Latest commit

 

History

History
60 lines (42 loc) · 1.18 KB

README.md

File metadata and controls

60 lines (42 loc) · 1.18 KB

twid - Twitter Intelligent Download

Scraping Twitter by headless mode, no API and limit.

Install

npm i -g twid

Usage

Note

The token option is required because cookies are required to access the Twitter user's media resources.

Simple Usage

# twid <...users>
# Two users
twid elonmusk youyuxi --token YOUR_TOKEN

Note

The users parameter is in the url, like https://twitter.com/elonmusk

--token

You can find token in devtool -> application -> Cookie(chosse https://twitter.com) -> auth_token:

twid youyuxi --token YOUR_TOKEN

Other options

twid --help
Usage:
  $ twid <...users>

Commands:
  <...users>

For more info, run any command with the `--help` flag:
  $ twid --help

Options:
  -O, --outDir [outDir]       The output dir (default: twid-dist)
  -T, --token <token>         The auth_token of cookies
  -D, --dev [dev]             Dev mode, Set headless and devtools to true (default: false)
  -R, --retry [proretryduct]  Retry times (default: 3)
  -P, --product [product]     Use chrome of firefox (default: chrome)
  -h, --help                  Display this message