Scrapes @chandler_holding_ur_fav_album for album requests, photoshops chandler to be holding the album, and posts the photo to @chandlers_favorite_album instagram page.
Some of this code is adopted from my other repo chandlers-favorite-album which makes the website chandlersfavoritealbum.com
Bot will post. Chandler instagram bot will postposts found in data/posts.csv
as long as they don't have a date_posted
data point
python bot.py -a=p
!! Data stored in data/
is outdated and is now hosted on chandlers-instagram-bot firebase realtime database
Uses gcloud command line. This deploys the function to google cloud functions, set to trigger on the trigger topic DAILY_POSTS.
gcloud functions deploy post_to_insta --trigger-topic DAILY_POSTS --runtime python39 --allow-unauthenticated
Creates pubsub trigger topic DAILY_POSTS.
gcloud pubsub topics create DAILY_POSTS
Go into google console to create a Cloud Scheduler job that triggers the function daily.