File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -54,7 +54,7 @@ So let's fetch our request token to begin the dance::
54
54
try:
55
55
redirect_url = auth.get_authorization_url()
56
56
except tweepy.TweepError:
57
- print 'Error! Failed to get request token.'
57
+ print( 'Error! Failed to get request token.')
58
58
59
59
This call requests the token from twitter and returns to us the
60
60
authorization URL where the user must be redirect to authorize us. Now
@@ -99,7 +99,7 @@ treasure box. To fetch this token we do the following::
99
99
try:
100
100
auth.get_access_token(verifier)
101
101
except tweepy.TweepError:
102
- print 'Error! Failed to get access token.'
102
+ print( 'Error! Failed to get access token.')
103
103
104
104
It is a good idea to save the access token for later use. You do not
105
105
need to re-fetch it each time. Twitter currently does not expire the
Original file line number Diff line number Diff line change @@ -76,4 +76,4 @@ will wait for 15 minutes each time it hits the rate limit.
76
76
77
77
for follower in limit_handled(tweepy.Cursor(api.followers).items()):
78
78
if follower.friends_count < 300:
79
- print follower.screen_name
79
+ print( follower.screen_name)
You can’t perform that action at this time.
0 commit comments