GeTXT: Data Text Fetching and Cleaning System using Tweepy API and MongoDB Depaly on Heroku | Python3
- Fork this repo
- Go to Heroku Account
- Connect your Repo
- Go to Setting tabb and Under
Config Vars
click onReveal Config Vars
then add environ as per var.py
'key' => 'Value'
'C_KEY' => ' '
'C_SEC' => ' '
'A_TOKEN' => ' '
'A_SEC' => ' '
'MONGO_URI' => ' '
And Add key.py
_model_arg_1 = [
"".""]
_model_arg_2=[
"","" ]
_model_arg_3=[
"","" ]
- Deploy the main Branch
- Once Build Success
- Goto
Overview
=?Dyno formation
=>Configure Dynos
=> Free Dynos and Start the switch. - Go to
More
=>View Log
to checklog
.
-
Clone this Repo
-
Make a key.py file in root dir for connecting database and Tweepy API(If want to push Record to Database)
-
Key.py File format
# Tweepy Cunsumer Key
_consumer_key = ""
_consumer_secret = ""
# Tweepy Auth Key
_auth_token = ""
_auth_secret = ""
# Mongo DB URI
_mongo_uri = ""
_model_arg_1 = [
"",""]
_model_arg_2=[
"","" ]
_model_arg_3=[
"","" ]
-
Go to var.py and "_deployment_env = False"
-
Activate a virtual env
pip install virtualenv
virtualenv env
env\Scripts\activate
- Install Requirements by Running
pip install -r requirements.txt
- Run
py app.py
-
Press Ctrl + c to stop the System Manually.
-
Once All Done. To close Virtual env:
deactivate