Created
August 31, 2011 14:18
-
-
Save aileron/1183652 to your computer and use it in GitHub Desktop.
pixiv member
This file contains hidden or 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' | |
| check = lambda {|i| open("http://www.pixiv.net/member.php?id=#{i}").read.index("該当ユーザーは既に退会したか、存在しないユーザーIDです")} | |
| i=3600000 | |
| loop do | |
| print "#{i-=1000} " | |
| break unless check.(i) | |
| end | |
| loop do | |
| print "#{i+=1} " | |
| break if check.(i) | |
| end | |
| print "\n" | |
| print "max pixiv user #{i-1}\n" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment