Tools for extracting metadata from tweets
Go to file
Harsh Shandilya 5bfafd62d6 fix: switch to `cargo-audit` 2023-03-06 19:53:30 +00:00
.cargo fix: switch to `cargo-audit` 2023-03-06 19:53:30 +00:00
.github fix(release): build both sh and pwsh installers 2023-02-02 10:50:59 +00:00
.vscode chore: automatically use `shell.nix` for Nix Env 2023-01-13 13:04:20 +00:00
src feat(config): use a bearer token for auth 2023-02-02 10:47:20 +00:00
.git-blame-ignore-revs chore(git): add Alejandra reformat to blame ignore revs 2023-02-22 18:29:18 +00:00
.gitignore Initial commit 2021-09-20 11:15:47 +05:30
Cargo.lock fix(deps): update rust crate tokio to 1.26.0 2023-03-02 01:58:48 +00:00
Cargo.toml fix(deps): update rust crate tokio to 1.26.0 2023-03-02 01:58:48 +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): add Built With Garnix badge 2023-02-16 14:13:02 +00:00
default.nix chore: reformat Nix files with `alejandra` 2023-02-22 18:25:02 +00:00
flake.lock chore(nix): bump flake inputs 2023-03-06 19:53:24 +00:00
flake.nix fix: switch to `cargo-audit` 2023-03-06 19:53:30 +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 chore: reformat Nix files with `alejandra` 2023-02-22 18:25:02 +00:00

README.md

twt No Maintenance Intended Built with Garnix

CLI tool to extract metadata from tweets

Install

Install prebuilt binaries via shell script

# WARNING: this installer is experimental
curl --proto '=https' --tlsv1.2 -L -sSf https://github.com/msfjarvis/twt/releases/latest/download/installer.sh | sh

Install prebuilt binaries via powershell script

# WARNING: this installer is experimental
irm 'https://github.com/msfjarvis/twt/releases/latest/download/installer.ps1' | iex

Setup

This tool requires Twitter consumer keys to function. Twitter is moving to disallow free usage of the API which is some hot bullshit, so you can pick up one of their own keys from here as a sincere fuck you to the new czar.

twt picks up keys from $CONFIG_DIR/twt/config.toml (see here for your platform's interpretation of $CONFIG_DIR)

# config.toml
consumer_key = "totally_real_key"
consumer_key_secret = "h4xx0r"

Usage

  • 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.