A python package that uses OpenAI to generate a response to a social media mention.
I'm currently just using this for Twitter. Insta replies as a new comment on the post. Reddit works too I think.
See my twitter replies for an example: https://twitter.com/RiversCuomo/with_replies
Depending on which of the 3 social media platforms you want to use, you'll register for the appropriate API keys.
You can specify custom variables to include using a .env
file. Alternatively, you can set them as Environment Variables.
OPENAI_API_KEY=x
INSTA_USERNAME=x INSTA_PASSWORD=x INSTA_PK=x
REDDIT_CLIENT_ID=x REDDIT_SECRET=x REDDIT_PASSWORD=x REDDIT_USERNAME=x
TWITTER_APP_KEY=x TWITTER_APP_SECRET=x TWITTER_OAUTH_TOKEN=x TWITTER_OAUTH_TOKEN_SECRET=x
GOOGLE_CLOUD_PROJECT= GOOGLE_APPLICATION_CREDENTIALS=path_to_json_file
BADS=xxx,yyy,zzz
Once you have completed all the installation steps, run Social
script by running either:
Traditional:
py -m social
Poetry:
poetry run python -m social