Skip to content

Instantly share code, notes, and snippets.

@shunirr
Created May 20, 2014 10:35
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save shunirr/edb185d0ad6d049269e2 to your computer and use it in GitHub Desktop.
Save shunirr/edb185d0ad6d049269e2 to your computer and use it in GitHub Desktop.
#!/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