/chandlers-instagram-bot

An instagram bot to run the account @chandlers_favorite_album. Posts custom photoshopped photos and tags the relevant users at 10am daily.

Primary LanguagePython

Chandlers Instagram Bot

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

Example command:

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

To deploy to google cloud platform to run the script daily

!! 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.

useful links