aboutsummaryrefslogtreecommitdiff
path: root/function-specific-programs/tweet.py
diff options
context:
space:
mode:
authorNavan Chauhan <navanchauhan@gmail.com>2019-05-24 23:20:18 +0530
committerNavan Chauhan <navanchauhan@gmail.com>2019-05-24 23:20:18 +0530
commit3fb30579921133b23afc95338602a4c994f22c1f (patch)
tree48f3623bb86e7399403c4d1524d4af8e45236771 /function-specific-programs/tweet.py
parent656e8b59c49b899aa1fdacd69b2912f1923bb110 (diff)
parent4ab155f47d8ba05cc8862017d07ab72e61e57ee7 (diff)
PyLint score 9.44/10
Diffstat (limited to 'function-specific-programs/tweet.py')
-rw-r--r--function-specific-programs/tweet.py18
1 files 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()