Created
March 14, 2012 23:51
-
-
Save vinigracindo/2040480 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
>>> user.twitter.me() | |
<tweepy.models.User objects at [...]> | |
>>> user.twitter.me().location | |
u'São Paulo' | |
>>> user.twitter.me().timeline() # Mostra as 20 últimas 'twittadas' do usuário | |
[Retorna uma lista de objetos tweepy.models.Status] | |
# Vamos pegar um twitter: | |
>>> twitter = user.twitter.me().timeline()[0] | |
>>> twitter.text | |
u'Meu twitter' | |
>>> twitter.retweet_count | |
2 | |
# Fim dos testes com o twitter | |
>>> user.twitter.friends() | |
[Retorta uma lista de objetos tweepe.models.User contendo todos os amigos do usuário] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment