Application for generating social media posts automatically. In a smart way 🤓.
Check out our experimental Instagram profile with auto-generated posts (image and caption).
Instagram Profile: 📸 the.wisdom.drops
usage: main.py [-h] -t THEMES -c POST_COUNT_PER_THEME
optional arguments:
-h, --help show this help message and exit
-t THEMES, --themes THEMES
string of themes to generate the posts about; Enter multiple ones separated by comma `,`
-c POST_COUNT_PER_THEME, --post_count_per_theme POST_COUNT_PER_THEME
amount of posts per theme
Note
Posts generated according configuration set in
config.yaml
file.
- Python >= 3.8
pipenv
UNSPLASH_ACCESS_KEY
: Access key for Unsplash APIUNSPLASH_SECRET_KEY
: Secret key for Unsplash APIGCP_KEY
: Google Cloud key with Image Custom Search enabledGCX
: Google context
FB_ACCESS_TOKEN
: Token for interacting with Facebook Graph API (with basic privileges)FB_ACCESS_TOKEN_SANDBOX
: Token with advanced privileges for using Marketing API featuresAD_ACCOUNT_ID
: Account ID for interacting with Business Data
Note
Alternatively create
.env
file at root of repo for setting env vars.
./credentials/gcloud.json
: Place here the json file for Google Cloud Service Account.
- Setup env vars and credentials
- Install packages
cd <REPO_ROOT_PATH>
pipenv shell
pip install -r requirements.txt
- Run script from cli (check
Usage
above)