綾小路龍之介の素人思考

RanSta

"http://www.ransta.jp/backnumber_3756/"のようなURLの場合、これの頭に" wget --post-data="procregister=dgregist&mailmag=add&email=MAILADDRESS@MAILADDRESS.COMP" "を付け足します。つまり、Perlスクリプト的にはこんな感じです。

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.mag2.com\/m\/(.*)\.html/wget --post-data=\"MfcISAPICommand=MagRdAdd&rdemail=MAILADDRESS\@MAILADDRESS.COMP&reg=magazine&magid=$1\" 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/;
        print;
}
close IN;
wget --post-data="procregister=dgregist&mailmag=add&email=MAILADDRESS@MAILADDRESS.COMP" http://www.ransta.jp/backnumber_3482/
wget --post-data="procregister=dgregist&mailmag=add&email=MAILADDRESS@MAILADDRESS.COMP" http://www.ransta.jp/backnumber_809/
wget --post-data="procregister=dgregist&mailmag=add&email=MAILADDRESS@MAILADDRESS.COMP" http://www.ransta.jp/backnumber_2028/
wget --post-data="procregister=dgregist&mailmag=add&email=MAILADDRESS@MAILADDRESS.COMP" http://www.ransta.jp/backnumber_3747/
wget --post-data="procregister=dgregist&mailmag=add&email=MAILADDRESS@MAILADDRESS.COMP" http://www.ransta.jp/backnumber_3748/
wget --post-data="procregister=dgregist&mailmag=add&email=MAILADDRESS@MAILADDRESS.COMP" http://www.ransta.jp/backnumber_3750/
wget --post-data="procregister=dgregist&mailmag=add&email=MAILADDRESS@MAILADDRESS.COMP" http://www.ransta.jp/backnumber_3751/
wget --post-data="procregister=dgregist&mailmag=add&email=MAILADDRESS@MAILADDRESS.COMP" http://www.ransta.jp/backnumber_3754/
wget --post-data="procregister=dgregist&mailmag=add&email=MAILADDRESS@MAILADDRESS.COMP" http://www.ransta.jp/backnumber_3755/
wget --post-data="procregister=dgregist&mailmag=add&email=MAILADDRESS@MAILADDRESS.COMP" http://www.ransta.jp/backnumber_3756/

ソーシャルブックマーク

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

ChangeLog

  1. Posted: 2006-04-13T00:41:26+09:00
  2. Modified: 2006-04-13T10:31:21+09:00
  3. Generated: 2017-05-22T23:09:17+09:00