Skip to content

Instantly share code, notes, and snippets.

@vinigracindo
Created March 14, 2012 23:51
Show Gist options
  • Save vinigracindo/2040480 to your computer and use it in GitHub Desktop.
Save vinigracindo/2040480 to your computer and use it in GitHub Desktop.
>>> 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