Categorygithub.com/knaka/twarc
repositorypackage
0.0.2024072926
Repository: https://github.com/knaka/twarc.git
Documentation: pkg.go.dev

# Packages

No description provided by the author

# README

twarc (Twitter Archiver)

Usage

Quit Chrome browser and make the command launch the browser with the CDP port open.

$ twitter-archive -u user -o /path/to/output.json

Alternatively, start your browser with --remote-debugging-port=9222 (any port number will do) and pass the port number to the command.

$ /Applications/Google\ Chrome.app/Contents/MacOS/Google\ Chrome --remote-debugging-port=9222
$ twitter-archive -p 9222 -u user -o /path/to/output.json

You can also fetch search results like https://x.com/explore by passing the query string.

$ twitter-archive -q "from:user until:2010-02-01" -o /path/to/output.json