From a7576a7d80ded0705ef7caffc9b2fa497919242c Mon Sep 17 00:00:00 2001 From: Jeffrey Yun Date: Mon, 17 Dec 2018 20:18:55 -0800 Subject: [PATCH] Fix typos --- README.md | 2 +- got/manager/TweetManager.py | 4 ++-- got3/manager/TweetManager.py | 4 ++-- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index 2280d2bb..0b7e043a 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,4 @@ -# Get Old Tweets Programatically +# Get Old Tweets Programmatically A project written in Python to get old tweets, it bypass some limitations of Twitter Official API. ## Details diff --git a/got/manager/TweetManager.py b/got/manager/TweetManager.py index 76bfa3f9..362b315e 100644 --- a/got/manager/TweetManager.py +++ b/got/manager/TweetManager.py @@ -21,7 +21,7 @@ def getTweets(tweetCriteria, receiveBuffer=None, bufferLength=100, proxy=None): active = True while active: - json = TweetManager.getJsonReponse(tweetCriteria, refreshCursor, cookieJar, proxy) + json = TweetManager.getJsonResponse(tweetCriteria, refreshCursor, cookieJar, proxy) if len(json['items_html'].strip()) == 0: break @@ -80,7 +80,7 @@ def getTweets(tweetCriteria, receiveBuffer=None, bufferLength=100, proxy=None): return results @staticmethod - def getJsonReponse(tweetCriteria, refreshCursor, cookieJar, proxy): + def getJsonResponse(tweetCriteria, refreshCursor, cookieJar, proxy): url = "https://twitter.com/i/search/timeline?f=tweets&q=%s&src=typd&max_position=%s" urlGetData = '' diff --git a/got3/manager/TweetManager.py b/got3/manager/TweetManager.py index 7f75bd31..f3484f87 100644 --- a/got3/manager/TweetManager.py +++ b/got3/manager/TweetManager.py @@ -18,7 +18,7 @@ def getTweets(tweetCriteria, receiveBuffer=None, bufferLength=100, proxy=None): active = True while active: - json = TweetManager.getJsonReponse(tweetCriteria, refreshCursor, cookieJar, proxy) + json = TweetManager.getJsonResponse(tweetCriteria, refreshCursor, cookieJar, proxy) if len(json['items_html'].strip()) == 0: break @@ -87,7 +87,7 @@ def getTweets(tweetCriteria, receiveBuffer=None, bufferLength=100, proxy=None): return results @staticmethod - def getJsonReponse(tweetCriteria, refreshCursor, cookieJar, proxy): + def getJsonResponse(tweetCriteria, refreshCursor, cookieJar, proxy): url = "https://twitter.com/i/search/timeline?f=tweets&q=%s&src=typd&%smax_position=%s" urlGetData = ''