Skip to content

Commit

Permalink
Final changes and config keys
Browse files Browse the repository at this point in the history
  • Loading branch information
sd2001 committed Jan 30, 2021
1 parent 80d39c7 commit e7db441
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 7 deletions.
7 changes: 4 additions & 3 deletions API/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,10 @@
import datetime
import numpy as np
from twilio.rest import Client
from decouple import config

account_sid = "AC3837dc86ec3c158fba0a73b8e696e309"
auth_token = "4d92ff7b75caf1ac5710b30441410cfb"
account_sid = config('account_sid')
auth_token = config('auth_token')

clientt = Client(account_sid, auth_token)

Expand All @@ -39,7 +40,7 @@
def parse_json(data):
return json.loads(dumps(data))

client = MongoClient("mongodb+srv://codebreak:[email protected]/User1?retryWrites=true&w=majority")
client = MongoClient(config('mongoconnect'))
db = client['User1']
jobs = db['jobs']
market = db['market']
Expand Down
9 changes: 5 additions & 4 deletions API/tweets/twitter_scraper.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,13 +20,14 @@
#import constants as ct
from textblob import TextBlob
from .Tweet import Tweet
from decouple import config


num_of_tweets=20
consumer_key="SvrmVjZ527gKMocaCIdS8ArZo"
consumer_secret="mFjrSeMr6TU7qOxQHTrtyPGt2BeA4RnBK4XzIHo1SH4jGebyl2"
access_token="2555973745-UzdXECQl5iom7CLhLVvsSEPZLdPC6kWsVHR3O4o"
access_token_secret="8sJRoJgPTxkqNt5fFe37nOq8fsMSVNABqv9VyTuYCqnrI"
consumer_key=config('consumer_key')
consumer_secret=config('consumer_secret')
access_token=config('access_token')
access_token_secret=('access_token_secret')


def tweet_to_data_frame(tweets):
Expand Down

0 comments on commit e7db441

Please sign in to comment.