Giter Site home page Giter Site logo

neshjesse / flask-socialmedia-automation Goto Github PK

View Code? Open in Web Editor NEW

This project forked from sakethsripada/flask-socialmedia-automation

0.0 0.0 0.0 1.78 MB

Social Media automation application built on Flask. Uses instagrapi to automate posting at scheduled times, and allows user to make AI generated posts. Twitter API is used in order to allow the user to tweet from the site. Utilizes SQLAlchemy for the login, registration process and database, and includes email verification and forgot password.

JavaScript 3.30% Python 96.70%

flask-socialmedia-automation's Introduction

AI Social Media Automation

Features

  • Automatic and regularly scheduled AI-generated social media posts:
    • Upload images/enter text and schedule posts for Instagram or Twitter.
    • Use OpenAI API to generate images with DALL-E or tweets with GPT-3.5 Turbo.
    • Schedule recurring posts or tweets with AI-generated content.
    • Connect to Instagram and quickly post AI generated images based on your prompt.
    • Send emails from your Gmail account with automated scheduling.
    • Scheduled AI Generated news posting option using NewsAPI for daily top headlines.

Upcoming Features

  • Improved text overlay on images posted to Instagram.
  • Access to external live data for post creation.

Setup Instructions

  1. Clone the repository:

    git clone https://github.com/SakethSripada/Flask-SocialMedia-Automation.git
  2. Obtain API Keys and Credentials:

  3. Create a 'secret.py' file and add values for the below variables:

     SECRET_KEY = 'your_secret_key' # Flask secret
     MAIL_SERVER = "smtp.gmail.com" 
     MAIL_PORT = 587
     MAIL_USERNAME = "your_email_address"
     MAIL_PASSWORD = "your_app_password" # Go to google account and set up App password
     MAIL_DEFAULT_SENDER = ("NoReply SM Automation", "your_email_address")
     API_KEY = "your_openai_api_key"
     TWITTER_CONSUMER_KEY = "your_twitter_consumer_key"
     TWITTER_CONSUMER_SECRET = "your_twitter_consumer_secret"
     BEARER_KEY = "your_twitter_bearer_key"
     ACCESS_TOKEN = "your_twitter_access_token"
     ACCESS_TOKEN_SECRET = "your_twitter_access_token_secret"
     OAUTH_CLIENT_ID = "your_oauth_client_id"
     OAUTH_CLIENT_SECRET = "your_oauth_client_secret"
     NEWS_API_KEY = "your_news_api_key"
  4. Install the required packages:

    pip install -r requirements.txt
  5. Set up the Database:

    flask db init
    flask db migrate -m "Initial migration."
    flask db upgrade
  6. Run application:

    flask run

Additional Notes and Commands:

  • Whenever you make changes to the database, run:
    flask db migrate -m "migration message"
  • And then to update the database with the changes, run:
    flask db upgrade
  • To Delete All Users, run:
    flask delete-all-users
  • To Delete Specific Users, run:
    flask delete-users user1,user2,user3
  • To List All Users, run:
    flask list-users

flask-socialmedia-automation's People

Contributors

sakethsripada avatar

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.