Quick barebones app to search your or any public Twitter user's likes.
Currently running on searchtwitterlikes.samrawal.repl.co/ (on free tier - may take 30 seconds to start up)
- The site uses my Twitter API key which could get rate-limited, so most straightforward thing to do would be to clone this repo or fork project on Replit and add your own API key. (Set your bearer token to env variable
TWITTER_BEARER_TOKEN
)
You can clone and run locally; run main.py
to launch a Flask GUI, or call cli.py
with parameters --user/-u for username, and --query/-q for query.
- Uses code adapted from Twitter v2 API.
- Uses the rank-bm25 Python package to rank searching.