From dde981451570e3d4f843f2a275d05a664822fdc4 Mon Sep 17 00:00:00 2001 From: Navan Chauhan Date: Sat, 11 May 2019 22:57:48 +0530 Subject: Thanks to GitGuardian --- function-specific-programs/tweet.py | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/function-specific-programs/tweet.py b/function-specific-programs/tweet.py index e9bfdfb..9903edd 100644 --- a/function-specific-programs/tweet.py +++ b/function-specific-programs/tweet.py @@ -2,12 +2,12 @@ import tweepy #twitter application credentials -consumer_key="knQFpTnjuSvr6OxYwebt3wyrd" -consumer_secret="Mhex3oRkmaF7lD3hoMvHpAD6ctW0ugKYCopTlhc0JzOLOMIZ0w" +consumer_key="addYours" +consumer_secret="addYours" #twitter user credentials -access_token="2846631344-wEozinvHfEIFxFVy51I6te8SrN5OTFtU00wxsiz" -access_token_secret="Nfx1U8a2TjAQXFLBrJIyy2p36sjBGAWFIthLc1cIoI56U" +access_token="AddYours" +access_token_secret="AddYours" auth = tweepy.OAuthHandler(consumer_key, consumer_secret) auth.set_access_token(access_token, access_token_secret) @@ -28,10 +28,10 @@ def get_api(cfg): def main(): # Fill in the values noted in previous step here cfg = { - "consumer_key" : "knQFpTnjuSvr6OxYwebt3wyrd", - "consumer_secret" : "Mhex3oRkmaF7lD3hoMvHpAD6ctW0ugKYCopTlhc0JzOLOMIZ0w", - "access_token" : "2846631344-wEozinvHfEIFxFVy51I6te8SrN5OTFtU00wxsiz", - "access_token_secret" : "Nfx1U8a2TjAQXFLBrJIyy2p36sjBGAWFIthLc1cIoI56U" + "consumer_key" : consumer_key, + "consumer_secret" : consumer_secret, + "access_token" : access_token, + "access_token_secret" : access_token_secret } api = get_api(cfg) @@ -40,4 +40,4 @@ def main(): # Yes, tweet is called 'status' rather confusing if __name__ == "__main__": - main() \ No newline at end of file + main() -- cgit v1.2.3 From 4ab155f47d8ba05cc8862017d07ab72e61e57ee7 Mon Sep 17 00:00:00 2001 From: Navan Chauhan Date: Sat, 11 May 2019 23:00:15 +0530 Subject: Thanks GitGuardian --- main.py | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/main.py b/main.py index e24980f..76b0721 100755 --- a/main.py +++ b/main.py @@ -30,6 +30,10 @@ import requests ###################### radius = str(100) # Radius for maxspeed function. taken as a string because gets concatenated in the function +consumer_key = "" +consumer_secret = "" +access_token = "" +access_token_secret = "" ################ # Dummy Values # @@ -83,10 +87,10 @@ def get_api(cfg): def tweet(): cfg = { - "consumer_key" : "knQFpTnjuSvr6OxYwebt3wyrd", - "consumer_secret" : "Mhex3oRkmaF7lD3hoMvHpAD6ctW0ugKYCopTlhc0JzOLOMIZ0w", - "access_token" : "2846631344-wEozinvHfEIFxFVy51I6te8SrN5OTFtU00wxsiz", - "access_token_secret" : "Nfx1U8a2TjAQXFLBrJIyy2p36sjBGAWFIthLc1cIoI56U" + "consumer_key" : consumer_key, + "consumer_secret" : consumer_secret, + "access_token" : access_token, + "access_token_secret" : access_token_secret } api = get_api(cfg) -- cgit v1.2.3