綾小路龍之介の素人思考

メルカップ

"http://www.melcup.com/cgi-bin/magazine/magazine.cgi?mag_id=M000004401"のようなURLの場合、"http://www.melcup.com/cgi-bin/magazine/magazine.cgi?mag_id="を"wget --post-data="mag_id="に、この後に続くマガジンIDを残して"&mail_addr=MAILADDRESS@MAILADDRESS.COMP" http://www.melcup.com/cgi-bin/reader/register.cgi"と続けます。つまり、Perlスクリプト的にはこんな感じです。

print<< 'OUT';
path "C:\Program Files\GnuWin32\bin"
path "D:\temp_prog\wget-1.10.1-bin\bin"
OUT
open IN,"mag.txt";
while(<IN>){
        s/http:\/\/mini.mag2.com\/pc\/m\/(.*)\.html/wget --post-data=\"e=MAILADDRESS\@MAILADDRESS.COMP&id=$1&PC=\" http:\/\/regist.mini.mag2.com\/r\/servlet\/Ma/;
        s/http:\/\/(www|woman).mag2.com\/m\/(.*)\.html/wget --post-data=\"MfcISAPICommand=MagRdAdd&rdemail=MAILADDRESS\@MAILADDRESS.COMP&reg=magazine&magid=$2\" http:\/\/regist.mag2.com\/reader\/Magrdadd/;
        s/http:\/\/cgi.kapu.biglobe.ne.jp\/m\/(.*)\.html/wget --post-data=\"mgid=$1&e_mail=MAILADDRESS\@MAILADDRESS.COMP\" http:\/\/cgi.kapu.biglobe.ne.jp\/cgi-bin\/mlmg_setma.cgi/;
        s/(http:\/\/www.ransta.jp\/backnumber_.*)/wget --post-data=\"procregister=dgregist&mailmag=add&email=MAILADDRESS\@MAILADDRESS.COMP\" $1/;
        s/http:\/\/amds.jp\/magazine\/(.*)\.html/wget --post-data=\"number=amds-$1&email=MAILADDRESS\@MAILADDRESS.COMP\" http:\/\/amds.jp\/amds_sub.cgi/;
        s/(http:\/\/www.melma.com\/backnumber_.*)/wget --post-data=\"procregister=dgregist&mailmag=add&email=MAILADDRESS\@MAILADDRESS.COMP\" $1/;
        s/http:\/\/www.emaga.com\/info\/(.*)\.html/wget --post-data=\"x=x&doui=ok&code=$1&mail=MAILADDRESS\@MAILADDRESS.COMP&regist=購読\" http:\/\/www.emaga.com\/tool\/mail.cgi/;
        s/http:\/\/www.sukiya\-nen.com\/sys\/m.cgi\?id=(.*)/wget --post-data=\"namae=a&id=$1&email=MAILADDRESS\@MAILADDRESS.COMP&mode=registvalue\" http:\/\/www.sukiya-nen.com\/sys\/maga_reg.cgi/;
        s/http:\/\/www.sukiya\-nen.com\/sys\/m.cgi\?id=(.*)/wget --post-data=\"namae=a&id=$1&email=MAILADDRESS\@MAILADDRESS.COMP&mode=regist\" http:\/\/www.sukiya-nen.com\/sys\/maga_reg.cgi/;
        s/http:\/\/www.melcup.com\/cgi-bin\/magazine\/magazine.cgi\?mag_id=(.*)/wget --post-data=\"mag_id=$1&mail_addr=MAILADDRESS\@MAILADDRESS.COMP\" http:\/\/www.melcup.com\/cgi-bin\/reader\/register.cgi/;
        print;
}close IN;

ソーシャルブックマーク

  1. はてなブックマーク
  2. Google Bookmarks
  3. del.icio.us

ChangeLog

  1. Posted: 2006-04-05T05:02:22+09:00
  2. Modified: 2006-04-05T10:28:48+09:00
  3. Generated: 2017-05-22T23:09:17+09:00