Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
T
tweepy
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Packages & Registries
Packages & Registries
Container Registry
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Zahra Rajabi
tweepy
Commits
91887af8
Commit
91887af8
authored
Oct 17, 2017
by
Floyd Hightower
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Updating print statements for python3
parent
8373a0ab
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
docs/auth_tutorial.rst
docs/auth_tutorial.rst
+2
-2
docs/code_snippet.rst
docs/code_snippet.rst
+1
-1
No files found.
docs/auth_tutorial.rst
View file @
91887af8
...
...
@@ -54,7 +54,7 @@ So let's fetch our request token to begin the dance::
try:
redirect_url = auth.get_authorization_url()
except tweepy.TweepError:
print
'Error! Failed to get request token.'
print
('Error! Failed to get request token.')
This call requests the token from twitter and returns to us the
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::
try:
auth.get_access_token(verifier)
except tweepy.TweepError:
print
'Error! Failed to get access token.'
print
('Error! Failed to get access token.')
It is a good idea to save the access token for later use. You do not
need to re-fetch it each time. Twitter currently does not expire the
...
...
docs/code_snippet.rst
View file @
91887af8
...
...
@@ -76,4 +76,4 @@ will wait for 15 minutes each time it hits the rate limit.
for follower in limit_handled(tweepy.Cursor(api.followers).items()):
if follower.friends_count < 300:
print
follower.screen_name
print
(follower.screen_name)
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment