自分自身のための ものづくり / 自分自身のためのものづくりメモ

突っ込みなどがありましたら掲示板にお願いします。

* ヤフオクのウォッチリスト用フィルタ

 ウォッチリストから商品IDが消えたと思ったら、まったくもって邪魔な「ポイント」とやらが出現。
 うりうりとProxomitron用フィルタを作成した。改変すると言うよりは、必要な情報を抽出して再構築するフィルタ。

商品名のみ
http://openwatchlist2.auctions.yahoo.co.jp/jp/show/mystatus?select=watchlist&s1=end&watchclosed=0&myaucpic=false
商品名と画像
http://openwatchlist2.auctions.yahoo.co.jp/jp/show/mystatus?select=watchlist&s1=end&watchclosed=0&myaucpic=true
等に対して機能。
 明示的に"myaucpic=true"とか書いてないと、どちらかを判別できないので適用されない。

[Patterns]
Name = "YahooAuction watch list remaker (pic=false) (tbody)"
Active = TRUE
URL = "openwatchlist*.auctions.yahoo.co.jp/jp/show/mystatus*myaucpic=false*"
Bounds = "<tr*</tr>"
Limit = 2048
Match = "\1"
        "<td*>(*)\1</td> "
        "<td*>(*)\2</td> "
        "<td*>(*)\3</td> "
        "<td*>*</td> "
        "<td*>(*)\5</td> "
        "<td*>(*)\6</td> "
        "<td*>(*)\7</td> "
        "<td*>(*)\8<a*</a></td> "
        "\2"
Replace = "<tr BGCOLOR="#ffffff"> "
          "<td>\1</td> "
          "<td>\2</td> "
          "<td align="left" nowrap>\3</td> "
          "<td>\5</td> "
          "<td><font size="0.6em">\6</font></td> "
          "<td><font size="0.6em">\7</font></td> "
          "<td nowrap>\8</td> "
          "</tr>\n"

Name = "YahooAuction watch list remaker (pic=false) (thead)"
Active = TRUE
URL = "openwatchlist*.auctions.yahoo.co.jp/jp/show/mystatus*myaucpic=false*"
Bounds = "<!-- LIST -->*</tr>"
Limit = 2048
Match = "\1 "
        "<TABLE(*)\0> "
        "<TD*>(*)\1</TD> "
        "<TD*>(*)\2</TD> "
        "<TD*>(*)\3</TD> "
        "<TD*>*</TD> "
        "<TD*>(*)\5</TD> "
        "<TD*>(*)\6</TD> "
        "<TD*>(*)\7</TD> "
        "<TD*>(*)\8</TD> "
        "\2"
Replace = "<!-- "
          "LIST "
          "--> "
          "<TABLE\0> "
          "<TD>\1</TD> "
          "<TD>\2</TD> "
          "<TD>\3</TD> "
          "<TD>\5</TD> "
          "<TD>\6</TD> "
          "<TD>\7</TD> "
          "<TD>\8</TD> "
          "</TR>"
          "$STOP()"

Name = "YahooAuction watch list remaker (pic=true) (tbody)"
Active = TRUE
URL = "openwatchlist*.auctions.yahoo.co.jp/jp/show/mystatus*myaucpic=true*"
Bounds = "<tr*</tr>"
Limit = 2048
Match = "\1 "
        "<td*><input(*)\1></td> "
        "<td*>(*)\2</td> "
        "<td*>(*)\3</td> "
        "<td*>(*)\4</td> "
        "<td*>(*)\5</td> "
        "<td*>(*)\6</td> "
        "<td*>(*)\7</td> "
        "<td*>(*)\8</td> "
        "<td*>(*)\9<a*</td> "
        "\2"
Replace = "<tr bgcolor="#FFFFFF">"
          "<td align="center"><input\1></td>"
          "<td>\2</td>"
          "<td align="left">\3</td>"
          "<td ALIGN="right" nowrap>\4</td>"
          "<td align="center">\6</td>"
          "<td align="center"><font size="0.6em">\7</font></td>"
          "<td align="center"><font size="0.6em">\8</font></td>"
          "<td align="right" nowrap>\9</td>"
          "</tr>"

Name = "YahooAuction watch list remaker (pic=true) (thead)"
Active = TRUE
URL = "openwatchlist*.auctions.yahoo.co.jp/jp/show/mystatus*myaucpic=true*"
Bounds = "<!-- LIST -->*</tr>"
Limit = 2048
Match = "\1"
        "<TABLE CELLPADDING="2" CELLSPACING="1" BGCOLOR="#dcdcdc" BORDER="0" WIDTH="100%"> "
        ""
        "<TR BGCOLOR="#ffe566"> "
        "<TD*>(*)\1</TD> "
        "<TD*>(*)\2</TD> "
        "<TD*>(*)\3</TD> "
        "<TD*>(*)\4</TD> "
        "<TD*>(*)\5</TD> "
        "<TD*>(*)\6</TD> "
        "<TD*>(*)\7</TD> "
        "<TD*>(*)\8</TD> "
        "<TD*>(*)\9</TD> "
        "\2"
        "</TR>"
Replace = "<!-- "
          "LIST "
          "--> "
          "<TABLE CELLPADDING="2" CELLSPACING="1" BGCOLOR="#dcdcdc" BORDER="0" WIDTH="100%"> "
          ""
          "<TR BGCOLOR="#ffe566"> "
          "<TD WIDTH="1em" ALIGN="center" NOWRAP>\1</TD> "
          "<TD ALIGN="center">\2</TD> "
          "<TD ALIGN="center">\3</TD> "
          "<TD ALIGN="center">\4</TD> "
          "<TD ALIGN="center">\6</TD> "
          "<TD ALIGN="center">\7</TD> "
          "<TD ALIGN="center">\8</TD> "
          "<TD ALIGN="center">\9</TD> "
          "</TR>"
          "$STOP()"

#Proxomitron #ヤフオク


create : 2006/04/14 (Fri)
update : 2006/04/17 (Mon)