Skip to content

Latest commit

 

History

History
37 lines (28 loc) · 1.29 KB

README.md

File metadata and controls

37 lines (28 loc) · 1.29 KB

lyubitori

A simple tool for collecting favorited images from twitter. Support Twitter API v1.1.

Build

> cargo build --release

Usage

Download recent favorited

> APP_CLIENT_KEY=<api-key> APP_CLIENT_SECRET=<api-secret-key> RESOURCE_OWNER_KEY=<access-token> RESOURCE_OWNER_SECRET=<access-secret> ./lyubitori download --save-path <image-save-path>

Download all history

APP_CLIENT_KEY=<api-key> APP_CLIENT_SECRET=<api-secret-key> RESOURCE_OWNER_KEY=<access-token> RESOURCE_OWNER_SECRET=<access-secret> ./lyubitori download --save-path <image-save-path> --scanall

TODO

  • oauth: user auth for fetching protected tweets[DONE]
  • download video/mp4[DONE]
  • download png img[DONE]
  • like & download tweets images from certain user's DM
  • send update messages to slack if new images were added
  • update image meta data into elasticsearch
  • call image classification API to tag images & add results to elasticsearch
  • protected media could be downloaded with Oauth signing(tested)[DONE]
  • Github Actions[DONE]
  • save tweet text for further analysis
  • add a redownload switch, don't redownload existed file by default.
  • support download animated-gif