タイトル | : 暫定対応その2 |
記事No | : 7530 |
投稿日 | : 2023/02/14(Tue) 02:02 |
投稿者 | : ス〜 |
まだ問題があるかのしれませんが、とりあえず いつものように、自己責任でお願いします。 修正量、やや多めです。 行番号は、過去の修正分が反映されていると 若干ずれているかもしれませんので、修正前の内容で調整してください。
------------------------------ ○修正前1 29行目付近 Version=20XX.XX.XX.0;
●修正後1 Version=2023.2.14.0; ------------------------------ ○修正前2 545行〜551行目付近 [KWD_LST:ITEMLST src=ITEMAREA, global, ignorecase] <li\s+class="Product">\s*<div\s+class="Product__image"> ((?:(?!<div\s+class="Product__detail">).)*?)<div class="Product__detail"> (?# [1]商品情報1) ((?:(?!<div\s+class="Product__sellerArea">).)*?)<div class="Product__sellerArea"> (?# [2]商品情報2) ((?:(?!<div\s+class="Product__priceInfo">).)*?)<div class="Product__priceInfo"> (?# [3]出品者情報) ((?:(?!<div\s+class="Product__otherInfo cf">).)*?)<div class="Product__otherInfo cf"> (?# [4]価格情報) ((?:(?!<li\s+class="Product">).)*?)</li> (?# [5]その他情報)
●修正後2 [KWD_LST:ITEMLST src=ITEMAREA, global, ignorecase] <li\s+class="Product">\s*<div\s+class="Product__image"> ((?:(?!<div\s+class="Product__detail">).)*?)<div class="Product__detail"> (?# [1]商品情報1) ((?:(?!<div\s+class="Product__priceInfo">).)*?)<div class="Product__priceInfo"> (?# [2]出品者情報) ((?:(?!<div\s+class="Product__otherInfo">).)*?)<div class="Product__otherInfo"> (?# [3]価格情報) ((?:(?!<div\s+class="Product__sellerArea">).)*?)<div class="Product__sellerArea"> (?# [4]商品情報2) ((?:(?!<li\s+class="Product">).)*?)</li> (?# [5]その他情報) ------------------------------ ○修正前3 572行〜598行目付近 slid(#)= iif( CLASSNAME!="SEL_LST", match(ITEMLST(#,4),' data-auction-sellerid="((?@USERID))"'), SELLER(2) );// 出品者ID slurl(#)= iif( CLASSNAME!="SEL_LST", match(ITEMLST(#,3),' href="([^"]+/' & slid(#) & ')"' ), SELLER(1) );// 出品者URL catid(#) = match(ITEMLST(#,1),' data-auction-category="(\d+)"'); // カテゴリID price(#)= match(ITEMLST(#,1),' data-auction-price="(\d+)'); // 現在価格 buyprice(#)= parseint( match(ITEMLST(#,4),'<span class="Product__label">即決</span><span class="Product__priceValue">(?@PRICE)</span>') ); // 即決価格 []buyprice(#)= match(ITEMLST(#,4),' data-auction-buynowprice="(\d+)'); // 即決価格(税抜き)
ship_locs(#) = match(ITEMLST(#,3),'<span[^>]*>([^<]+)から発送</span>');// 発送地域簡易版
bids_txt(#)= match(ITEMLST(#,5),'<a\s+class="Product__bid\s+[^>]+>\s*([,0-9]+)\s*</a>'); // 入札数文字列 bids(#)= parseint(bids_txt(#));// 入札数(空は0とする) lefttime_txt(#)= match(ITEMLST(#,5),'<span\s+class="Product__time[^>]+>([^<]+)<');// 残り時間文字列 lefttime_sec(#) = parseint(match(lefttime_txt(#),'(\d+)日' ))*86400 +// 秒単位残り時間 parseint(match(lefttime_txt(#),'(\d+)時間'))*3600 + parseint(match(lefttime_txt(#),'(\d+)分' ))*60 + parseint(match(lefttime_txt(#),'(\d+)秒' ));
sttime_unix(#)= match(ITEMLST(#,2),'stm=(\d+)'); // 開始時刻(UNIX形式,日本時間) cltime_unix(#)= match(ITEMLST(#,4),' data-auction-endtime="(\d+)'); // 終了時刻(UNIX形式,日本時間)
icn_buynow(#)= iif( buyprice(#) > 0 , 1, 0 ); // 即決アイコン icn_premium(#)= test(ITEMLST(#,3),'class="Product__icon\s+Product__icon--(?:best)?store"');// ストアアイコン icn_new(#)= test(ITEMLST(#,1),'class="Product__icon\s+Product__icon--new"'); // 新着アイコン icn_att(#)= test(ITEMLST(#,2),'class="Product__icon\s+Product__icon--unused"'); // 新品アイコン icn_psf(#)= test(ITEMLST(#,2),'class="Product__icon\s+Product__icon--freeShipping"');// 送料無料アイコン icn_img(#)= iif( !empty(tumburl(#))&&tumburl(#)!="-", "1", iif( !empty(imgurl(#)), "0", "" ) );// 画像有無アイコン
●修正後3 slid(#)= iif( CLASSNAME!="SEL_LST", match(ITEMLST(#,3),' data-auction-sellerid="((?@USERID))"'), SELLER(2) );// 出品者ID slurl(#)= iif( CLASSNAME!="SEL_LST", match(ITEMLST(#,2),' href="([^"]+/' & slid(#) & ')"' ), SELLER(1) );// 出品者URL catid(#) = match(ITEMLST(#,1),' data-auction-category="(\d+)"'); // カテゴリID price(#)= match(ITEMLST(#,1),' data-auction-price="(\d+)'); // 現在価格 buyprice(#)= parseint( match(ITEMLST(#,3),'<span class="Product__label">即決</span><span class="Product__priceValue">(?@PRICE)</span>') ); // 即決価格 []buyprice(#)= match(ITEMLST(#,3),' data-auction-buynowprice="(\d+)'); // 即決価格(税抜き)
ship_locs(#) = match(ITEMLST(#,2),'<span[^>]*>([^<]+)から発送</span>');// 発送地域簡易版
bids_txt(#)= match(ITEMLST(#,4),'<a\s+class="Product__bid\s+[^>]+>\s*([,0-9]+)\s*</a>'); // 入札数文字列 bids(#)= parseint(bids_txt(#));// 入札数(空は0とする) lefttime_txt(#)= match(ITEMLST(#,4),'<span\s+class="Product__time[^>]+>([^<]+)<');// 残り時間文字列 lefttime_sec(#) = parseint(match(lefttime_txt(#),'(\d+)日' ))*86400 +// 秒単位残り時間 parseint(match(lefttime_txt(#),'(\d+)時間'))*3600 + parseint(match(lefttime_txt(#),'(\d+)分' ))*60 + parseint(match(lefttime_txt(#),'(\d+)秒' ));
sttime_unix(#)= match(ITEMLST(#,4),'stm=(\d+)'); // 開始時刻(UNIX形式,日本時間) cltime_unix(#)= match(ITEMLST(#,3),' data-auction-endtime="(\d+)'); // 終了時刻(UNIX形式,日本時間)
icn_buynow(#)= iif( buyprice(#) > 0 , 1, 0 ); // 即決アイコン icn_premium(#)= test(ITEMLST(#,2),'class="Product__icon\s+Product__icon--(?:best)?store"');// ストアアイコン icn_new(#)= test(ITEMLST(#,1),'class="Product__icon\s+Product__icon--new"'); // 新着アイコン icn_att(#)= test(ITEMLST(#,4),'class="Product__icon\s+Product__icon--unused"'); // 新品アイコン icn_psf(#)= test(ITEMLST(#,4),'class="Product__icon\s+Product__icon--freeShipping"');// 送料無料アイコン icn_img(#)= iif( !empty(tumburl(#))&&tumburl(#)!="-", "1", iif( !empty(imgurl(#)), "0", "" ) );// 画像有無アイコン
|