Skip to content

jeffehobbs/bizanime

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

bizanime

Business anime GIF tweets

How to get this working?

  1. download/clone repo

  2. enter the project directory

cd bizanime

  1. create a virtual environment

python3 -m venv

  1. enter virtual environment

source venv/bin/activate

  1. install "requests" and "tweepy"

pip install requests tweepy

  1. 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
  1. run python app:

python3 app.py

  1. 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:

  1. Make sure your AWS configuration file is in place.

  2. install zappa:

pip install zappa

  1. init zappa:

zappa init

  1. push to production:

zappa deploy production

Releases

No releases published

Packages

No packages published

Languages