oii_twitter_goodies 0.0.742 → 0.0.743
Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 43272f8d73d1381284eecf7f7b1a9234b0243cf8
|
4
|
+
data.tar.gz: d4291a3d251ea1f120ed1d239615fc2a98dccbb7
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 11e9e42d48760eadc4e7f9eecbee4e59024edc8d7be18f6c7c39f5d98d54d23ef97975a7d3a05668bf2164102317429af639172f9a4cc45f3a85165f2bd51b74
|
7
|
+
data.tar.gz: fbf5e455e012dd0ca37c650a2c8247bcf7c4b3231563db32170ab6a2c4f496c07a133c604482a1678778f976282fe0fe3a7151efec7842dcbaa3bb96ed1aa7c1
|
@@ -52,6 +52,10 @@ class FollowersForUsers
|
|
52
52
|
puts "Got Twitter::Error::BadGateway error - usually this is just a missed connect from Twitter."
|
53
53
|
sleep(10)
|
54
54
|
retry
|
55
|
+
rescue Twitter::Error::TooManyRequests
|
56
|
+
puts "Got Twitter::Error::TooManyRequests error - we are rate limited and will sleep for 15 minutes. See you in a bit."
|
57
|
+
sleep(15*60)
|
58
|
+
retry
|
55
59
|
end
|
56
60
|
ids = ids|data.ids
|
57
61
|
cursor = data["next_cursor"]
|
@@ -69,6 +73,10 @@ class FollowersForUsers
|
|
69
73
|
puts "Got Twitter::Error::BadGateway error - usually this is just a missed connect from Twitter."
|
70
74
|
sleep(10)
|
71
75
|
retry
|
76
|
+
rescue Twitter::Error::TooManyRequests
|
77
|
+
puts "Got Twitter::Error::TooManyRequests error - we are rate limited and will sleep for 15 minutes. See you in a bit."
|
78
|
+
sleep(15*60)
|
79
|
+
retry
|
72
80
|
end
|
73
81
|
end
|
74
82
|
user_data
|