Skip to content

Instantly share code, notes, and snippets.

@aileron
Created August 31, 2011 14:18
Show Gist options
  • Select an option

  • Save aileron/1183652 to your computer and use it in GitHub Desktop.

Select an option

Save aileron/1183652 to your computer and use it in GitHub Desktop.
pixiv member
#!/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