Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

twid

Package Overview
Dependencies
Maintainers
1
Versions
18
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

twid

A simple Twitter scraping in headless mode for Chrome and Firefox, written in nodejs and doesn't need the Twitter API

  • 0.3.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

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

Keywords

FAQs

Package last updated on 10 Feb 2024

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc