Giter Site home page Giter Site logo

rndmh3ro / social Goto Github PK

View Code? Open in Web Editor NEW

This project forked from riverscuomo/social

0.0 1.0 0.0 45 KB

A python package that uses OpenAI to generate and post a response to a social media mention.

License: GNU General Public License v3.0

Python 100.00%

social's Introduction

Social PRs Welcome

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

Installation

Depending on which of the 3 social media platforms you want to use, you'll register for the appropriate API keys.

Environment Variables

You can specify custom variables to include using a .env file. Alternatively, you can set them as Environment Variables.

API Credentials

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 Translate for Language Translation (optional)

GOOGLE_CLOUD_PROJECT= GOOGLE_APPLICATION_CREDENTIALS=path_to_json_file

The script will ignore any mentions that contain these words (comma separated)

BADS=xxx,yyy,zzz

Running

Once you have completed all the installation steps, run Social script by running either:

Traditional:

py -m social

Poetry:

poetry run python -m social

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.