Migrated from timeline-access v4
parent
afba480a9d
commit
4c3ba11b9d
1 changed files with 4 additions and 4 deletions
|
|
@ -9,7 +9,7 @@ Returns the public timeline. This is easily one of the simplest methods for gett
|
||||||
import twython
|
import twython
|
||||||
|
|
||||||
# Getting the public timeline requires no authentication, huzzah
|
# Getting the public timeline requires no authentication, huzzah
|
||||||
twitter = twython.setup()
|
twitter = twython.core.setup()
|
||||||
public_timeline = twitter.getPublicTimeline()
|
public_timeline = twitter.getPublicTimeline()
|
||||||
|
|
||||||
for tweet in public_timeline:
|
for tweet in public_timeline:
|
||||||
|
|
@ -32,7 +32,7 @@ Parameters:
|
||||||
import twython
|
import twython
|
||||||
|
|
||||||
# Authenticate using Basic (HTTP) Authentication
|
# Authenticate using Basic (HTTP) Authentication
|
||||||
twitter = twython.setup(authtype="Basic", username="example", password="example")
|
twitter = twython.core.setup(username="example", password="example")
|
||||||
friends_timeline = twitter.getFriendsTimeline(count="150", page="3")
|
friends_timeline = twitter.getFriendsTimeline(count="150", page="3")
|
||||||
|
|
||||||
for tweet in friends_timeline:
|
for tweet in friends_timeline:
|
||||||
|
|
@ -58,7 +58,7 @@ Parameters:
|
||||||
import twython
|
import twython
|
||||||
|
|
||||||
# We won't authenticate for this, but sometimes it's necessary
|
# We won't authenticate for this, but sometimes it's necessary
|
||||||
twitter = twython.setup()
|
twitter = twython.core.setup()
|
||||||
user_timeline = twitter.getUserTimeline(screen_name="ryanmcgrath")
|
user_timeline = twitter.getUserTimeline(screen_name="ryanmcgrath")
|
||||||
|
|
||||||
print user_timeline
|
print user_timeline
|
||||||
|
|
@ -79,7 +79,7 @@ Parameters:
|
||||||
<code>
|
<code>
|
||||||
import twython
|
import twython
|
||||||
|
|
||||||
twitter = twython.setup(authtype="Basic", username="example", password="example")
|
twitter = twython.core.setup(username="example", password="example")
|
||||||
mentions = twitter.getUserMentions(count="150")
|
mentions = twitter.getUserMentions(count="150")
|
||||||
|
|
||||||
print mentions
|
print mentions
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue