Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #/usr/bin/env python
- import twitter
- # Hacemos conexion y tomamos todos los amigos
- api = twitter.Api(username='usuario', password='password')
- amigos = api.GetFollowers()
- # Recogemos todos los followers en una lista
- lista = []
- for ca in amigos:
- lista.append(ca.screen_name) #Usamos el atributo screen_name de la clase User
- #Hacemos el Follow Friday
- update = ''
- for h in lista:
- update += '@%s ' % h
- if len(update) >= 140:
- print '#FF %s' % update#[0:136]
- status = api.PostUpdate('#FF %s' % update[0:136])
- update = ''
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement