Flask SocialMedia Automation
1.0.0
Clone the repository:
git clone https://github.com/SakethSripada/Flask-SocialMedia-Automation.git
Obtain API Keys and Credentials:
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"
Install the required packages:
pip install -r requirements.txt
Set up the Database:
flask db init
flask db migrate -m "Initial migration."
flask db upgrade
Run application:
flask run
flask db migrate -m "migration message"
flask db upgrade
flask delete-all-users
flask delete-users user1,user2,user3
flask list-users