#!/usr/bin/ruby -Ke =begin 製作開始:2005/03/01 最終更新:2005/03/03 =end require "kconv" $stdout.sync = 1 $cookiefile = "cookies.txt" # mozzila形式 $useragent = "Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0)" $retry_wait = 180 $each_wait = 30 $url_filename = "org_url.txt" $proxy = "-Y " $板名s = ["", "アニキャプ", "萌え絵", "その他", "まったり", "お絵かき"] # ====================================================================== class Webpage def initialize(page) @p = 0 @prev_link = "" @lines = [] for line in page line.strip! line.gsub!(//, ">\n") for elm in line.to_a elm.chomp! elm.sub!(/^\s$/, '') if /^/i, /head>/i, /title>/i, /body>/i, /table>/i, //i, //i, /
/i, //i, //i, /