PyLint score 9.44/10
This commit is contained in:
commit
3fb3057992
|
@ -2,12 +2,12 @@
|
||||||
import tweepy
|
import tweepy
|
||||||
|
|
||||||
#twitter application credentials
|
#twitter application credentials
|
||||||
consumer_key="knQFpTnjuSvr6OxYwebt3wyrd"
|
consumer_key="addYours"
|
||||||
consumer_secret="Mhex3oRkmaF7lD3hoMvHpAD6ctW0ugKYCopTlhc0JzOLOMIZ0w"
|
consumer_secret="addYours"
|
||||||
|
|
||||||
#twitter user credentials
|
#twitter user credentials
|
||||||
access_token="2846631344-wEozinvHfEIFxFVy51I6te8SrN5OTFtU00wxsiz"
|
access_token="AddYours"
|
||||||
access_token_secret="Nfx1U8a2TjAQXFLBrJIyy2p36sjBGAWFIthLc1cIoI56U"
|
access_token_secret="AddYours"
|
||||||
|
|
||||||
auth = tweepy.OAuthHandler(consumer_key, consumer_secret)
|
auth = tweepy.OAuthHandler(consumer_key, consumer_secret)
|
||||||
auth.set_access_token(access_token, access_token_secret)
|
auth.set_access_token(access_token, access_token_secret)
|
||||||
|
@ -28,10 +28,10 @@ def get_api(cfg):
|
||||||
def main():
|
def main():
|
||||||
# Fill in the values noted in previous step here
|
# Fill in the values noted in previous step here
|
||||||
cfg = {
|
cfg = {
|
||||||
"consumer_key" : "knQFpTnjuSvr6OxYwebt3wyrd",
|
"consumer_key" : consumer_key,
|
||||||
"consumer_secret" : "Mhex3oRkmaF7lD3hoMvHpAD6ctW0ugKYCopTlhc0JzOLOMIZ0w",
|
"consumer_secret" : consumer_secret,
|
||||||
"access_token" : "2846631344-wEozinvHfEIFxFVy51I6te8SrN5OTFtU00wxsiz",
|
"access_token" : access_token,
|
||||||
"access_token_secret" : "Nfx1U8a2TjAQXFLBrJIyy2p36sjBGAWFIthLc1cIoI56U"
|
"access_token_secret" : access_token_secret
|
||||||
}
|
}
|
||||||
|
|
||||||
api = get_api(cfg)
|
api = get_api(cfg)
|
||||||
|
@ -40,4 +40,4 @@ def main():
|
||||||
# Yes, tweet is called 'status' rather confusing
|
# Yes, tweet is called 'status' rather confusing
|
||||||
|
|
||||||
if __name__ == "__main__":
|
if __name__ == "__main__":
|
||||||
main()
|
main()
|
||||||
|
|
Loading…
Reference in New Issue