Commits

pval...@pvalente-laptop  committed 0e5cffb

Agora o erro ao adicionar amigo não derruba mais o programa. Acontecia pq tem limite de 100 amigos carregados pela api e ele tenta adicionar outros q já estão

  • Participants
  • Parent commits fb7c7be

Comments (0)

Files changed (2)

     return friends_list
 
 def add_friend(api, screen_name):
-    new_friend = api.CreateFriendship(screen_name)
-    print "twitter.fasassim.following %s" % new_friend.name
+    try:
+        new_friend = api.CreateFriendship(screen_name)
+        print "twitter.fasassim.following %s" % new_friend.name
+    except:
+        print "twitter.fasassim.following %s - FAIL" % screen_name
 
 def get_full_feed():
     feed = urllib.urlopen('http://search.twitter.com/search.json?q=comofas')

File updates.pickle

 (dp1
 Vnext_page
 p2
-V?page=2&max_id=1001446080&q=comofas
+V?page=2&max_id=1001465973&q=comofas
 p3
 sVrefresh_url
 p4
-V?since_id=1001446080&q=comofas
+V?since_id=1001465973&q=comofas
 p5
 sVresults
 p6
 p10
 sVtext
 p11
-VConsigo n�o, universo. Comofas aqui com gal�xias de medos eternos? EIN? Porra, meu.
+V@fasassim comofas pra pausar a internet?
 p12
 sVcreated_at
 p13
-VWed, 12 Nov 2008 02:34:18 +0000
+VWed, 12 Nov 2008 02:49:30 +0000
 p14
 sVprofile_image_url
 p15
+Vhttp://s3.amazonaws.com/twitter_production/profile_images/62255420/twitter3_normal.jpg
+p16
+sVto_user
+p17
+Vfasassim
+p18
+sVfrom_user
+p19
+VOneLag
+p20
+sVfrom_user_id
+p21
+I201065
+sVto_user_id
+p22
+I2367550
+sVid
+p23
+I1001465973
+sa(dp24
+Viso_language_code
+p25
+Vpt
+p26
+sVtext
+p27
+V@OneLag, vc precisa perguntar pro @fasassim comofas pra n�o ficar angustiado com a internet. Com certeza ele tem uma boa resposta
+p28
+sVcreated_at
+p29
+VWed, 12 Nov 2008 02:46:12 +0000
+p30
+sVprofile_image_url
+p31
+Vhttp://s3.amazonaws.com/twitter_production/profile_images/60157722/pedro2008_normal.jpg
+p32
+sVto_user
+p33
+VOneLag
+p34
+sVfrom_user
+p35
+Vpedrovalente
+p36
+sVfrom_user_id
+p37
+I50376
+sVto_user_id
+p38
+I201065
+sVid
+p39
+I1001461425
+sa(dp40
+Viso_language_code
+p41
+Vpt
+p42
+sVtext
+p43
+VConsigo n�o, universo. Comofas aqui com gal�xias de medos eternos? EIN? Porra, meu.
+p44
+sVcreated_at
+p45
+VWed, 12 Nov 2008 02:34:18 +0000
+p46
+sVprofile_image_url
+p47
 Vhttp://s3.amazonaws.com/twitter_production/profile_images/59994655/grayside_normal.jpg
-p16
+p48
 sVfrom_user
-p17
+p49
 Vwal_limoli
-p18
+p50
 sVfrom_user_id
-p19
+p51
 I1609096
 sVto_user_id
-p20
+p52
 NsVid
-p21
+p53
 I1001446080
-sa(dp22
+sa(dp54
 Viso_language_code
-p23
+p55
 Vpt
-p24
+p56
 sVtext
-p25
+p57
 Vtop top mtv foi tudo, comofas ter pais mega influentes///
-p26
+p58
 sVcreated_at
-p27
+p59
 VWed, 12 Nov 2008 02:33:14 +0000
-p28
+p60
 sVprofile_image_url
-p29
+p61
 Vhttp://s3.amazonaws.com/twitter_production/profile_images/56772187/praiafaixagrandecortada_normal.jpg
-p30
+p62
 sVfrom_user
-p31
+p63
 Vthaismello
-p32
+p64
 sVfrom_user_id
-p33
+p65
 I980877
 sVto_user_id
-p34
+p66
 NsVid
-p35
+p67
 I1001444533
-sa(dp36
+sa(dp68
 Viso_language_code
-p37
+p69
 Vpt
-p38
+p70
 sVtext
-p39
+p71
 VQuando eu morrer, quero deixar o meu corpo pra ci�ncia #comofas?
-p40
+p72
 sVcreated_at
-p41
+p73
 VWed, 12 Nov 2008 02:12:25 +0000
-p42
+p74
 sVprofile_image_url
-p43
+p75
 Vhttp://s3.amazonaws.com/twitter_production/profile_images/58434963/Ananias_normal.jpg
-p44
+p76
 sVfrom_user
-p45
+p77
 VAnanista
-p46
+p78
 sVfrom_user_id
-p47
+p79
 I267892
 sVto_user_id
-p48
+p80
 NsVid
-p49
+p81
 I1001421324
-sa(dp50
+sa(dp82
 Viso_language_code
-p51
+p83
 Vpt
-p52
+p84
 sVtext
-p53
+p85
 VQuero aprender mandarim, #comofas?
-p54
+p86
 sVcreated_at
-p55
+p87
 VWed, 12 Nov 2008 01:32:20 +0000
-p56
+p88
 sVprofile_image_url
-p57
+p89
 Vhttp://s3.amazonaws.com/twitter_production/profile_images/63884836/avatar2_normal.png
-p58
+p90
 sVfrom_user
-p59
+p91
 Vlenonm
-p60
+p92
 sVfrom_user_id
-p61
+p93
 I191412
 sVto_user_id
-p62
+p94
 NsVid
-p63
+p95
 I1001371857
-sa(dp64
+sa(dp96
 Viso_language_code
-p65
+p97
 Vpt
-p66
+p98
 sVtext
-p67
+p99
 Vcomofas pra ligar pro afeganist�o ?
-p68
+p100
 sVcreated_at
-p69
+p101
 VWed, 12 Nov 2008 01:26:18 +0000
-p70
+p102
 sVprofile_image_url
-p71
+p103
 Vhttp://s3.amazonaws.com/twitter_production/profile_images/60297300/BRAZIL_by_Oster_normal.jpg
-p72
+p104
 sVfrom_user
-p73
+p105
 Vbrunocaimar
-p74
+p106
 sVfrom_user_id
-p75
+p107
 I609851
 sVto_user_id
-p76
+p108
 NsVid
-p77
+p109
 I1001364783
-sa(dp78
+sa(dp110
 Viso_language_code
-p79
+p111
 Vpt
-p80
+p112
 sVtext
-p81
+p113
 Vcomofas pra isso funcionar ?
-p82
+p114
 sVcreated_at
-p83
+p115
 VWed, 12 Nov 2008 01:23:59 +0000
-p84
+p116
 sVprofile_image_url
-p85
+p117
 Vhttp://s3.amazonaws.com/twitter_production/profile_images/60297300/BRAZIL_by_Oster_normal.jpg
-p86
+p118
 sVfrom_user
-p87
+p119
 Vbrunocaimar
-p88
+p120
 sVfrom_user_id
-p89
+p121
 I609851
 sVto_user_id
-p90
+p122
 NsVid
-p91
+p123
 I1001361868
-sa(dp92
+sa(dp124
 Viso_language_code
-p93
+p125
 Vpt
-p94
+p126
 sVtext
-p95
+p127
 VO som no Debian t� muito baixo, j� reinstalei o Alsa e nada... #comofas?
-p96
+p128
 sVcreated_at
-p97
+p129
 VWed, 12 Nov 2008 01:16:16 +0000
-p98
+p130
 sVprofile_image_url
-p99
+p131
 Vhttp://s3.amazonaws.com/twitter_production/profile_images/63884836/avatar2_normal.png
-p100
+p132
 sVfrom_user
-p101
+p133
 Vlenonm
-p102
+p134
 sVfrom_user_id
-p103
+p135
 I191412
 sVto_user_id
-p104
+p136
 NsVid
-p105
+p137
 I1001351859
-sa(dp106
+sa(dp138
 Viso_language_code
-p107
+p139
 Vpt
-p108
+p140
 sVtext
-p109
+p141
 V@luizaaltino comofas/ O__O'
-p110
+p142
 sVcreated_at
-p111
+p143
 VWed, 12 Nov 2008 01:07:39 +0000
-p112
+p144
 sVprofile_image_url
-p113
+p145
 Vhttp://s3.amazonaws.com/twitter_production/profile_images/64068242/IMG_4095_normal.JPG
-p114
+p146
 sVto_user
-p115
+p147
 Vluizaaltino
-p116
+p148
 sVfrom_user
-p117
+p149
 Vleeiri
-p118
+p150
 sVfrom_user_id
-p119
+p151
 I1954396
 sVto_user_id
-p120
+p152
 I1674872
 sVid
-p121
+p153
 I1001338478
-sa(dp122
+sa(dp154
 Viso_language_code
-p123
+p155
 Vpt
-p124
+p156
 sVtext
-p125
+p157
 Vfudido de grana, mas ainda quero comprar livros. #comofas?
-p126
+p158
 sVcreated_at
-p127
+p159
 VWed, 12 Nov 2008 01:04:29 +0000
-p128
+p160
 sVprofile_image_url
-p129
+p161
 Vhttp://s3.amazonaws.com/twitter_production/profile_images/57375017/eye_normal.jpg
-p130
+p162
 sVfrom_user
-p131
+p163
 Vfelipelobo
-p132
+p164
 sVfrom_user_id
-p133
+p165
 I136748
 sVto_user_id
-p134
+p166
 NsVid
-p135
+p167
 I1001333211
-sa(dp136
+sa(dp168
 Viso_language_code
-p137
+p169
 Ven
-p138
+p170
 sVtext
-p139
+p171
 VRadiohead no Chile e crise, comofas//
-p140
+p172
 sVcreated_at
-p141
+p173
 VWed, 12 Nov 2008 01:02:34 +0000
-p142
+p174
 sVprofile_image_url
-p143
+p175
 Vhttp://s3.amazonaws.com/twitter_production/profile_images/59808984/eu_normal.jpg
-p144
+p176
 sVfrom_user
-p145
+p177
 Vmari_onete
-p146
+p178
 sVfrom_user_id
-p147
+p179
 I1561967
 sVto_user_id
-p148
+p180
 NsVid
-p149
+p181
 I1001329908
-sa(dp150
+sa(dp182
 Viso_language_code
-p151
+p183
 Vpt
-p152
+p184
 sVtext
-p153
+p185
 Vquero malhar, falar espanhol e morar fora, comofas?
-p154
+p186
 sVcreated_at
-p155
+p187
 VWed, 12 Nov 2008 01:00:14 +0000
-p156
+p188
 sVprofile_image_url
-p157
+p189
 Vhttp://s3.amazonaws.com/twitter_production/profile_images/60771701/parque_normal.jpg
-p158
+p190
 sVfrom_user
-p159
+p191
 Vphonetrio
-p160
+p192
 sVfrom_user_id
-p161
+p193
 I2185576
 sVto_user_id
-p162
+p194
 NsVid
-p163
+p195
 I1001326064
-sa(dp164
+sa(dp196
 Viso_language_code
-p165
+p197
 Vpt
-p166
+p198
 sVtext
-p167
+p199
 V@alegomes Se te consola: meu mac caiu no ch�o. Arrumei com ajuda do http://www.ifixit.com/, mas perdi o drive de CD/DVD. #comofas now?
-p168
+p200
 sVcreated_at
-p169
+p201
 VWed, 12 Nov 2008 00:41:38 +0000
-p170
+p202
 sVprofile_image_url
-p171
+p203
 Vhttp://s3.amazonaws.com/twitter_production/profile_images/61182697/orkut_normal.jpg
-p172
+p204
 sVto_user
-p173
+p205
 Valegomes
-p174
+p206
 sVfrom_user
-p175
+p207
 Vmarianneabreu
-p176
+p208
 sVfrom_user_id
-p177
+p209
 I508853
 sVto_user_id
-p178
+p210
 I65808
 sVid
-p179
+p211
 I1001296479
-sa(dp180
+sa(dp212
 Viso_language_code
-p181
+p213
 Vpt
-p182
+p214
 sVtext
-p183
+p215
 V#comofas?  =/
-p184
+p216
 sVcreated_at
-p185
+p217
 VWed, 12 Nov 2008 00:39:57 +0000
-p186
+p218
 sVprofile_image_url
-p187
+p219
 Vhttp://s3.amazonaws.com/twitter_production/profile_images/39443812/DSC02790_normal.JPG
-p188
+p220
 sVfrom_user
-p189
+p221
 Vsweethome
-p190
+p222
 sVfrom_user_id
-p191
+p223
 I179059
 sVto_user_id
-p192
+p224
 NsVid
-p193
+p225
 I1001294198
-sa(dp194
-Viso_language_code
-p195
-Vpt
-p196
-sVtext
-p197
-Vcomofas quando eu nao entendo? sem girias de truts, pls. jaajosdkfd
-p198
-sVcreated_at
-p199
-VWed, 12 Nov 2008 00:27:38 +0000
-p200
-sVprofile_image_url
-p201
-Vhttp://s3.amazonaws.com/twitter_production/profile_images/59365849/qqq_normal.JPG
-p202
-sVfrom_user
-p203
-Vkxxx
-p204
-sVfrom_user_id
-p205
-I1482969
-sVto_user_id
-p206
-NsVid
-p207
-I1001279713
-sa(dp208
-Viso_language_code
-p209
-Vpt
-p210
-sVtext
-p211
-VPrecisava urgeeeeente colocar mais mem�ria nesse PC, mas dia 30 anivers�rio da m�e... #comofas///1/'^~
-p212
-sVcreated_at
-p213
-VWed, 12 Nov 2008 00:25:37 +0000
-p214
-sVprofile_image_url
-p215
-Vhttp://s3.amazonaws.com/twitter_production/profile_images/58560816/yo_normal.jpg
-p216
-sVfrom_user
-p217
-Vlimareis
-p218
-sVfrom_user_id
-p219
-I11422
-sVto_user_id
-p220
-NsVid
-p221
-I1001277433
 sasVsince_id
-p222
+p226
 I0
 sVresults_per_page
-p223
+p227
 I15
 sVquery
-p224
+p228
 Vcomofas
-p225
+p229
 sVmax_id
-p226
-I1001446080
+p230
+I1001465973
 sVpage
-p227
+p231
 I1
 s.