Burocrati, Amministratori, wegan
509
contributi
m (gnamo) |
m (dio canaja de dio) |
||
Riga 1: | Riga 1: | ||
Proiettare felini verso Giove a quarantacinquemila km/s. | Proiettare felini verso Giove a quarantacinquemila km/s. | ||
<pre> | |||
# In this example, the handler is time.sleep(15 * 60), | |||
# but you can of course handle it in any way you want. | |||
def limit_handled(cursor): | |||
while True: | |||
try: | |||
yield cursor.next() | |||
except tweepy.RateLimitError: | |||
time.sleep(15 * 60) | |||
for follower in limit_handled(tweepy.Cursor(api.followers).items()): | |||
if follower.friends_count < 300: | |||
print follower.screen_name | |||
</pre> | |||
=Prova della pagina principale= | =Prova della pagina principale= | ||