Created
May 20, 2014 10:35
-
-
Save shunirr/edb185d0ad6d049269e2 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env ruby | |
# -*- coding: utf-8 -*- | |
require 'open-uri' | |
exclude_users = %w(share damebitos) | |
seiyu = {} | |
%w(http://vatwitter.damebito.com/ http://seesaawiki.jp/w/wikkkiiii/d/%C0%BC%CD%A5).each do |url| | |
list = nil | |
begin | |
doc = open(url).read | |
list = doc.to_s.scan /https?:\/\/twitter\.com\/(?:#!\/)?([A-Za-z0-9_]+)/ | |
rescue => ignore | |
end | |
list.flatten.each do |user| | |
next if exclude_users.include? user | |
seiyu[user] = true | |
end | |
end | |
p seiyu.keys |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment