Skip to content

Twitter bot that uses the Yelp API to find random reviews from random businesses and tweets them out.

Notifications You must be signed in to change notification settings

joeyagreco/random-yelp-reviews

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

50 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Random Yelp Reviews

Twitter bot that uses the Yelp API to find random reviews from random businesses and tweets them out.

Installation

Use the package manager pip to install the requirements.

pip install -r requirements.txt

Setup

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

Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

Credit

Zip code data provided by simplemaps.com

About

Twitter bot that uses the Yelp API to find random reviews from random businesses and tweets them out.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages