Business anime GIF tweets
How to get this working?
-
download/clone repo
-
enter the project directory
cd bizanime
- create a virtual environment
python3 -m venv
- enter virtual environment
source venv/bin/activate
- install "requests" and "tweepy"
pip install requests tweepy
- get Twitter/GIPHY API keys, create an apikeys.txt file in this format:
[apikeys]
giphy_apikey = THE_GIPHY_API_KEY
[twitter]
consumer_key = THE_TWITTER_API_KEY
consumer_secret = THE_TWITTER_API_KEY
access_token = THE_TWITTER_API_KEY
access_token_secret = THE_TWITTER_API_KEY
- run python app:
python3 app.py
- edit code (text files, GIPHY search term and parameters) to taste
At this point, you'll have a fully functional python app that can tweet weird text and GIFs. To continue on and move this code to AWS:
-
Make sure your AWS
configuration
file is in place. -
install zappa:
pip install zappa
- init zappa:
zappa init
- push to production:
zappa deploy production