Tools for extracting metadata from tweets
Go to file
Harsh Shandilya c1720b9381 chore: automatically use `shell.nix` for Nix Env 2023-01-13 13:04:20 +00:00
.github feat(nix): migrate build and CI to Nix Flakes 2022-12-17 06:09:33 +00:00
.vscode chore: automatically use `shell.nix` for Nix Env 2023-01-13 13:04:20 +00:00
src feat: load credentials from config file 2022-11-01 18:30:40 +00:00
.gitignore Initial commit 2021-09-20 11:15:47 +05:30
Cargo.lock fix(deps): update rust crate tokio to 1.24.1 2023-01-06 13:20:13 +00:00
Cargo.toml fix(deps): update rust crate tokio to 1.24.1 2023-01-06 13:20:13 +00:00
LICENSE-APACHE Initial commit 2021-09-20 11:15:47 +05:30
LICENSE-MIT Initial commit 2021-09-20 11:15:47 +05:30
README.md No Maintenance Intended 2023-01-09 19:43:07 +00:00
default.nix feat(nix): set up `flake-compat` 2022-12-17 23:36:52 +00:00
deny.toml chore(deps): update transitive crates 2022-09-06 01:01:06 +05:30
flake.lock feat(nix): set up `flake-compat` 2022-12-17 23:36:52 +00:00
flake.nix feat(nix): set up `flake-compat` 2022-12-17 23:36:52 +00:00
release.toml chore(release): update `cargo-release` config 2022-12-12 17:19:46 +00:00
rust-toolchain.toml rust: add rust-toolchain file 2022-07-05 02:29:28 +05:30
shell.nix feat(nix): set up `flake-compat` 2022-12-17 23:36:52 +00:00

README.md

twt Check Rust code No Maintenance Intended

CLI tool to extract metadata from tweets

Usage

There are unlikely to ever be published binaries for this, so this requires a Rust development environment set up locally.

git clone https://github.com/msfjarvis/twitter-images.git
cd twitter-images
cargo build --release

The tool is built to avoid interactive login and relies on the presence of a bunch of environment variables at build-time that require a Twitter developer account and a project created on the account to obtain.

  • CONSUMER_KEY - The consumer API key for the project.
  • CONSUMER_KEY_SECRET - The consumer secret for the project.
  • ACCESS_TOKEN - Authentication access token for your user, for the project.
  • ACCESS_TOKEN_SECRET - Access secret for your user.

Examples

  • Get image links

    twt images --username archillect
    
  • Get video links

    twt videos --username imgur
    
  • Set the maximum tweets to check

    twt images --username archillect --max-amount 512
    
  • Get all links

    twt links --username AITA_online --host bit.ly
    

For more help run: twt -h.