Skip to content
Open

py3 #187

Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Exporter.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ def main(argv):

if len(argv) == 1 and argv[0] == '-h':
f = open('exporter_help_text.txt', 'r')
print f.read()
print(f.read())
f.close()

return
Expand Down
3 changes: 2 additions & 1 deletion got/manager/TweetManager.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ def getTweets(tweetCriteria, receiveBuffer=None, bufferLength=100, proxy=None):

usernameTweet = tweetPQ("span:first.username.u-dir b").text()
txt = re.sub(r"\s+", " ", tweetPQ("p.js-tweet-text").text().replace('# ', '#').replace('@ ', '@'))
txt = txt.replace('# ','#').replace('@ ','@')
retweets = int(tweetPQ("span.ProfileTweet-action--retweet span.ProfileTweet-actionCount").attr("data-tweet-stat-count").replace(",", ""))
favorites = int(tweetPQ("span.ProfileTweet-action--favorite span.ProfileTweet-actionCount").attr("data-tweet-stat-count").replace(",", ""))
dateSec = int(tweetPQ("small.time span.js-short-timestamp").attr("data-time"))
Expand Down Expand Up @@ -129,7 +130,7 @@ def getJsonReponse(tweetCriteria, refreshCursor, cookieJar, proxy):
response = opener.open(url)
jsonResponse = response.read()
except:
print "Twitter weird response. Try to see on browser: https://twitter.com/search?q=%s&src=typd" % urllib.quote(urlGetData)
print ("Twitter weird response. Try to see on browser: https://twitter.com/search?q=%s&src=typd" % urllib.quote(urlGetData))
sys.exit()
return

Expand Down
Binary file modified requirements.txt
Binary file not shown.