Flask SocialMedia Automation
1.0.0
저장소를 복제하십시오 .
git clone https://github.com/SakethSripada/Flask-SocialMedia-Automation.git
API 키 및 자격 증명 얻기 :
'secret.py' 파일을 만들고 아래 변수에 대한 값을 추가합니다 .
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"
필수 패키지를 설치하십시오 .
pip install -r requirements.txt
데이터베이스 설정 :
flask db init
flask db migrate -m " Initial migration. "
flask db upgrade
애플리케이션 실행 :
flask run
flask db migrate -m " migration message "
flask db upgrade
flask delete-all-users
flask delete-users user1,user2,user3
flask list-users