https://github.com/inadarei/twitter-unfollows
Tracking Twitter Unfollows (Early Prototype)
https://github.com/inadarei/twitter-unfollows
Last synced: 4 months ago
JSON representation
Tracking Twitter Unfollows (Early Prototype)
- Host: GitHub
- URL: https://github.com/inadarei/twitter-unfollows
- Owner: inadarei
- License: mit
- Created: 2020-05-30T20:50:35.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2020-08-02T02:05:16.000Z (about 5 years ago)
- Last Synced: 2025-03-29T04:41:47.824Z (7 months ago)
- Language: Python
- Homepage:
- Size: 313 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Twitter Unfollows
Python script helping track unfollows on Twitter
## Prerequisites:
1. Working Docker environment
2. GNU Make
3. Define thw following env variables in your host environment:
- TWITTER_ACCESS_TOKEN
- TWITTER_ACCESS_TOKEN_SECRET
- TWITTER_API_KEY
- TWITTER_API_SECRET_KEY
4. Set up `make check` on cron (probably every 12 or 24 hours, 6 hours at most)
## Supported Commands:
1. `make` - launch redis server and watch logs
2. `make redis-server` - launch redis server
3. `make redis-cli` - launch redis client
4. `make app` - clean rebuild (for extreme debugging)
5. `make check` - Run a Twitter API call for latest data. Can only be done
6. once n 15 minutes due to Twitter API restrictions
7. `make logs` - tail combined logs from the service and the db
8. `make logs-app`
9. `make logs-db`
10. `make lint` - pylint code
11. `make test` - run unit and functional tests
12. `make add package="pytest"` - adds a module (in this case: "pytest") inside
a running container and saves it to the requirements.txt.