mirror of
https://github.com/tildeverse/lobsters
synced 2024-06-15 05:26:35 +00:00
parent
a1486f8ce6
commit
bb65fddd2a
|
@ -22,6 +22,9 @@ res = Twitter.oauth_request("/1.1/lists/members.json?list_id=#{list_id}" <<
|
||||||
"&count=5000&skip_status=true", :get)
|
"&count=5000&skip_status=true", :get)
|
||||||
their_users = res["users"].map{|u| [ u["screen_name"].downcase, true ] }.to_h
|
their_users = res["users"].map{|u| [ u["screen_name"].downcase, true ] }.to_h
|
||||||
|
|
||||||
|
if their_users.empty?
|
||||||
|
raise "Intemittent Twitter bug: they said the list is empty when it's not"
|
||||||
|
end
|
||||||
if their_users.count >= 5000
|
if their_users.count >= 5000
|
||||||
STDERR.puts "need to implement paging for list members"
|
STDERR.puts "need to implement paging for list members"
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in New Issue
Block a user