Skip to content
/ twid Public

A simple Twitter images scraping in headless mode for Chrome and Firefox, written in nodejs and doesn't need the Twitter API | 无需 Twitter API 的爬虫工具, 使用 node.js 编写,运行在 Chrome、Firefox 无头模式

License

Notifications You must be signed in to change notification settings

Plumbiu/twid

Folders and files

NameName
Last commit message
Last commit date

Latest commit

00a19ce · Feb 10, 2024

History

37 Commits
Dec 29, 2023
Feb 10, 2024
Dec 29, 2023
Jan 1, 2024
Dec 29, 2023
Jan 3, 2024
Jan 2, 2024
Jan 1, 2024
Dec 29, 2023

Repository files navigation

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

About

A simple Twitter images scraping in headless mode for Chrome and Firefox, written in nodejs and doesn't need the Twitter API | 无需 Twitter API 的爬虫工具, 使用 node.js 编写,运行在 Chrome、Firefox 无头模式

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published