Skip to content

GeTXT: Data Text Fetching and Cleaning System using Tweepy API and MongoDB Deploy on Heroku | Python3

License

Notifications You must be signed in to change notification settings

imakshat47/GeTXT

Repository files navigation

GeTXT: Data Text Fetching and Cleaning System using Tweepy API and MongoDB Depaly on Heroku | Python3

To deploy directly

  1. Fork this repo
  2. Go to Heroku Account
  3. Connect your Repo
  4. Go to Setting tabb and Under Config Vars click on Reveal 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=[
               "","" ]
  1. Deploy the main Branch
  2. Once Build Success
  3. Goto Overview =? Dyno formation => Configure Dynos => Free Dynos and Start the switch.
  4. Go to More => View Log to check log.

How to run on Local

  1. Clone this Repo

  2. Make a key.py file in root dir for connecting database and Tweepy API(If want to push Record to Database)

  3. 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=[
               "","" ]
               
  1. Go to var.py and "_deployment_env = False"

  2. Activate a virtual env

pip install virtualenv
virtualenv env
env\Scripts\activate
  1. Install Requirements by Running
pip install -r requirements.txt
  1. Run
py app.py
  1. Press Ctrl + c to stop the System Manually.

  2. Once All Done. To close Virtual env:

deactivate

This source code is licensed under the GPL-style license found in the LICENSE file in the root directory of this source tree.

About

GeTXT: Data Text Fetching and Cleaning System using Tweepy API and MongoDB Deploy on Heroku | Python3

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages