Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Zahra Rajabi
tweepy
Commits
59d0a895
Commit
59d0a895
authored
Apr 05, 2016
by
Andreas Nüßlein
Browse files
py3-ify getting_started.rst
.. also still compatible with python2
parent
cd46550b
Changes
1
Hide whitespace changes
Inline
Side-by-side
docs/getting_started.rst
View file @
59d0a895
...
...
@@ -26,7 +26,7 @@ Hello Tweepy
public_tweets = api.home_timeline()
for tweet in public_tweets:
print
tweet.text
print
(
tweet.text
)
This example will download your home timeline tweets and print each
one of their texts to the console. Twitter requires all requests to
...
...
@@ -55,10 +55,10 @@ the following code returns to us an User model::
Models contain the data and some helper methods which we can then
use::
print
user.screen_name
print
user.followers_count
print
(
user.screen_name
)
print
(
user.followers_count
)
for friend in user.friends():
print
friend.screen_name
print
(
friend.screen_name
)
For more information about models please see ModelsReference.
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