綾小路龍之介の素人思考

まぐまぐ http://www.mag2.com/

"http://www.mag2.com/m/0000174250.html"のようなURLの場合、これの"http://www.mag2.com/m/"の部分を、" wget --post-data="MfcISAPICommand=MagRdAdd&rdemail=MAILADDRESS@MAILADDRESS.COMP&reg=magazine&magid="のように置換し、この後に続くマガジンIDを残して、".html"の部分を"" http://regist.mag2.com/reader/Magrdadd"のように置換します。つまり、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/;
  print;
}
close IN;

連続登録用

path "C:\Program Files\GnuWin32\bin"
path "D:\temp_prog\wget-1.10.1-bin\bin"
wget --post-data="MfcISAPICommand=MagRdAdd&rdemail=MAILADDRESS@MAILADDRESS.COMP&reg=magazine&magid=0000113221" http://regist.mag2.com/reader/Magrdadd
wget --post-data="MfcISAPICommand=MagRdAdd&rdemail=MAILADDRESS@MAILADDRESS.COMP&reg=magazine&magid=0000124732" http://regist.mag2.com/reader/Magrdadd
wget --post-data="MfcISAPICommand=MagRdAdd&rdemail=MAILADDRESS@MAILADDRESS.COMP&reg=magazine&magid=0000111878" http://regist.mag2.com/reader/Magrdadd
wget --post-data="MfcISAPICommand=MagRdAdd&rdemail=MAILADDRESS@MAILADDRESS.COMP&reg=magazine&magid=0000115639" http://regist.mag2.com/reader/Magrdadd
wget --post-data="MfcISAPICommand=MagRdAdd&rdemail=MAILADDRESS@MAILADDRESS.COMP&reg=magazine&magid=0000114046" http://regist.mag2.com/reader/Magrdadd
wget --post-data="MfcISAPICommand=MagRdAdd&rdemail=MAILADDRESS@MAILADDRESS.COMP&reg=magazine&magid=0000147381" http://regist.mag2.com/reader/Magrdadd
wget --post-data="MfcISAPICommand=MagRdAdd&rdemail=MAILADDRESS@MAILADDRESS.COMP&reg=magazine&magid=0000125212" http://regist.mag2.com/reader/Magrdadd
wget --post-data="MfcISAPICommand=MagRdAdd&rdemail=MAILADDRESS@MAILADDRESS.COMP&reg=magazine&magid=0000130666" http://regist.mag2.com/reader/Magrdadd
wget --post-data="MfcISAPICommand=MagRdAdd&rdemail=MAILADDRESS@MAILADDRESS.COMP&reg=magazine&magid=0000143515" http://regist.mag2.com/reader/Magrdadd
wget --post-data="MfcISAPICommand=MagRdAdd&rdemail=MAILADDRESS@MAILADDRESS.COMP&reg=magazine&magid=0000155211" http://regist.mag2.com/reader/Magrdadd
wget --post-data="MfcISAPICommand=MagRdAdd&rdemail=MAILADDRESS@MAILADDRESS.COMP&reg=magazine&magid=0000160227" http://regist.mag2.com/reader/Magrdadd
wget --post-data="MfcISAPICommand=MagRdAdd&rdemail=MAILADDRESS@MAILADDRESS.COMP&reg=magazine&magid=0000090799" http://regist.mag2.com/reader/Magrdadd
wget --post-data="MfcISAPICommand=MagRdAdd&rdemail=MAILADDRESS@MAILADDRESS.COMP&reg=magazine&magid=0000092425" http://regist.mag2.com/reader/Magrdadd
wget --post-data="MfcISAPICommand=MagRdAdd&rdemail=MAILADDRESS@MAILADDRESS.COMP&reg=magazine&magid=0000094358" http://regist.mag2.com/reader/Magrdadd
wget --post-data="MfcISAPICommand=MagRdAdd&rdemail=MAILADDRESS@MAILADDRESS.COMP&reg=magazine&magid=0000109411" http://regist.mag2.com/reader/Magrdadd
wget --post-data="MfcISAPICommand=MagRdAdd&rdemail=MAILADDRESS@MAILADDRESS.COMP&reg=magazine&magid=0000099963" http://regist.mag2.com/reader/Magrdadd
wget --post-data="MfcISAPICommand=MagRdAdd&rdemail=MAILADDRESS@MAILADDRESS.COMP&reg=magazine&magid=0000127100" http://regist.mag2.com/reader/Magrdadd
wget --post-data="MfcISAPICommand=MagRdAdd&rdemail=MAILADDRESS@MAILADDRESS.COMP&reg=magazine&magid=0000128608" http://regist.mag2.com/reader/Magrdadd
wget --post-data="MfcISAPICommand=MagRdAdd&rdemail=MAILADDRESS@MAILADDRESS.COMP&reg=magazine&magid=0000132309" http://regist.mag2.com/reader/Magrdadd
wget --post-data="MfcISAPICommand=MagRdAdd&rdemail=MAILADDRESS@MAILADDRESS.COMP&reg=magazine&magid=0000156343" http://regist.mag2.com/reader/Magrdadd
wget --post-data="MfcISAPICommand=MagRdAdd&rdemail=MAILADDRESS@MAILADDRESS.COMP&reg=magazine&magid=0000160955" http://regist.mag2.com/reader/Magrdadd
wget --post-data="MfcISAPICommand=MagRdAdd&rdemail=MAILADDRESS@MAILADDRESS.COMP&reg=magazine&magid=0000134379" http://regist.mag2.com/reader/Magrdadd
wget --post-data="MfcISAPICommand=MagRdAdd&rdemail=MAILADDRESS@MAILADDRESS.COMP&reg=magazine&magid=0000115691" http://regist.mag2.com/reader/Magrdadd
wget --post-data="MfcISAPICommand=MagRdAdd&rdemail=MAILADDRESS@MAILADDRESS.COMP&reg=magazine&magid=0000095467" http://regist.mag2.com/reader/Magrdadd
wget --post-data="MfcISAPICommand=MagRdAdd&rdemail=MAILADDRESS@MAILADDRESS.COMP&reg=magazine&magid=0000113221" http://regist.mag2.com/reader/Magrdadd
C:\WINDOWS\デスクトップ>find "廃刊" .\b.txt > b-b.txt
C:\WINDOWS\デスクトップ>find /V "廃刊" .\b.txt > b-b.txt
C:\WINDOWS\デスクトップ>find /V "休刊" .\b-b.txt > b-b-b.txt

ソーシャルブックマーク

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

ChangeLog

  1. Posted: 2006-04-15T12:20:30+09:00
  2. Modified: 2006-04-15T10:32:14+09:00
  3. Generated: 2017-01-29T23:09:16+09:00