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
0c995dcb
Commit
0c995dcb
authored
Nov 05, 2016
by
Aaron Hill
Committed by
GitHub
Nov 05, 2016
Browse files
Merge pull request #719 from nutztherookie/patch-1
py3-ify getting_started.rst
parents
2baeeb23
59d0a895
Changes
1
Hide whitespace changes
Inline
Side-by-side
docs/getting_started.rst
View file @
0c995dcb
...
@@ -26,7 +26,7 @@ Hello Tweepy
...
@@ -26,7 +26,7 @@ Hello Tweepy
public_tweets = api.home_timeline()
public_tweets = api.home_timeline()
for tweet in public_tweets:
for tweet in public_tweets:
print
tweet.text
print
(
tweet.text
)
This example will download your home timeline tweets and print each
This example will download your home timeline tweets and print each
one of their texts to the console. Twitter requires all requests to
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::
...
@@ -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
Models contain the data and some helper methods which we can then
use::
use::
print
user.screen_name
print
(
user.screen_name
)
print
user.followers_count
print
(
user.followers_count
)
for friend in user.friends():
for friend in user.friends():
print
friend.screen_name
print
(
friend.screen_name
)
For more information about models please see ModelsReference.
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