Tools for extracting metadata from tweets
Go to file
Harsh Shandilya 1800b7ce20 chore(release): bump twt to version 1.0.1 2022-12-12 17:20:10 +00:00
.github chore(deps): update rui314/setup-mold digest to b2554cc 2022-11-08 02:20:23 +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 chore(release): bump twt to version 1.0.1 2022-12-12 17:20:10 +00:00
Cargo.toml chore(release): bump twt to version 1.0.1 2022-12-12 17:20:10 +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 chore(readme): document `twt videos` 2022-07-29 13:38:19 +05:30
deny.toml chore(deps): update transitive crates 2022-09-06 01:01:06 +05:30
justfile feat(just): add justfile 2022-07-29 15:52:35 +05:30
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 fix(nix): use Rust from nixpkgs 2022-07-27 00:58:44 +05:30

README.md

twt Check Rust code

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.