Twitter bot that uses the Yelp API to find random reviews from random businesses and tweets them out.
Use the package manager pip to install the requirements.
pip install -r requirements.txt
The following environment variables must be defined before running the script:
# Yelp API
YELP_API_BASE_URL=https://api.yelp.com/v3/businesses
YELP_API_API_KEY=...
YELP_API_SEARCH_ROUTE=/search
YELP_API_REVIEWS_ROUTE=/reviews
# Twitter
TWITTER_API_KEY=...
TWITTER_API_KEY_SECRET=...
TWITTER_BEARER_TOKEN=...
TWITTER_ACCESS_TOKEN=...
TWITTER_ACCESS_TOKEN_SECRET=...
TWEET_BASE_URL=https://twitter.com/{account_@_name}/status/
# GENERAL
MINUTES_IN_BETWEEN_TWEETS=60
Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.
Zip code data provided by simplemaps.com