拍拍帳號資訊查詢PHP

來源:互聯網
上載者:User
一個用於查詢拍拍帳號資訊的小程式,初學php寫的比較爛。

  1 load($result); 35      36         //賣家資料 37         $ele = $html->find('div[class=name]'); 38         if($ele == null){ 39             echo ""; 40         } 41          42         $info_detail['nick'] = $ele[0]->next_sibling()->plaintext; 43         $info_detail['area'] = $ele[1]->next_sibling()->plaintext; 44         $info_detail['time'] = $ele[2]->next_sibling()->plaintext; 45          46         //店鋪綜合評分 47         $colligation_score['score'] = $html->find('div[class=score module] h1 span.times strong', 0)->plaintext; 48         $ele = $html->find('div[class=score module] div.nav ul li'); 49         $colligation_score['conform'] = $ele[0]->children[1]->children[0]->plaintext; 50         $colligation_score['attitude'] = $ele[1]->children[1]->children[0]->plaintext; 51         $colligation_score['delivery speed'] = $ele[2]->children[1]->children[0]->plaintext; 52          53  54         //店鋪近30天服務狀況 55         $ele = $html->find('div[class=score module shop_about] div div ul li'); 56         $service_status['backmoney speed'] = $ele[0]->children[1]->children[0]->plaintext; 57         $service_status['backmoney rate'] = $ele[1]->children[1]->children[0]->plaintext; 58         $service_status['complaint handing speed'] = $ele[2]->children[1]->children[0]->plaintext; 59         $service_status['complaint rate'] = $ele[3]->children[1]->children[0]->plaintext; 60          61          62         //投訴率 63         $ele = $html->find('div[class=center_block small_table] div[class=score module shop_about] div ul li'); 64         $comp_rate['commercial quality'] = $ele[0]->children[1]->children[0]->plaintext;    //商品品質原因 65         $comp_rate['stockout'] = $ele[1]->children[1]->children[0]->plaintext;                //缺貨原因     66         $comp_rate['attitude'] = $ele[2]->children[1]->children[0]->plaintext;                //服務態度原因     67         $comp_rate['delivery speed'] = $ele[3]->children[1]->children[0]->plaintext;        //發貨速度原因 68          69         //退款率 70         $ele = $html->find('div[class=center_block small_table refund] div[class=score module shop_about] div ul li'); 71         $refund_rate['commercial quality'] = $ele[0]->children[1]->children[0]->plaintext; 72         $refund_rate['stockout'] = $ele[1]->children[1]->children[0]->plaintext; 73         $refund_rate['attitude'] = $ele[2]->children[1]->children[0]->plaintext; 74          75         //店鋪信用率 76         $ele = $html->find('div[class=score module shop_score] h1.title', 0); 77         if($ele != null) { 78             $is_display_credit = true;     79             $credit_score = $ele->children[2]->score; 80             $reputation_rate = $ele->children[3]->children[0]->plaintext; 81              82             $ele = $html->find('div[class=score module shop_score] div.table table tr'); 83             $last_week['good'] = $ele[1]->children[1]->innertext; 84             $last_week['average'] = $ele[1]->children[2]->innertext; 85             $last_week['fail'] = $ele[1]->children[3]->innertext; 86          87             $last_month['good'] = $ele[2]->children[1]->innertext; 88             $last_month['average'] = $ele[2]->children[2]->innertext; 89             $last_month['fail'] = $ele[2]->children[3]->innertext; 90              91             $last_six_months['good'] = $ele[3]->children[1]->innertext; 92             $last_six_months['average'] = $ele[3]->children[2]->innertext; 93             $last_six_months['fail'] = $ele[3]->children[3]->innertext; 94              95             $total['good'] = $ele[4]->children[1]->innertext; 96             $total['average'] = $ele[4]->children[2]->innertext; 97             $total['fail'] = $ele[4]->children[3]->innertext; 98         } 99         100         $html->clear();101 102 103         104     }105 106 ?>107 108 109 110 111 112 拍拍帳號資訊查詢113 114 210 211 212 213 214 215 219 220 221 222 223 
 
  224     
  225 
   226 
   227 
   228 
   229 
   230 231 
   232 
   233 
   234 
   235 236 
   237 
   238 
   239 
   240 
   241 242 
   243 
   
    244 
    245 
    246 
   247 248 
   
    249 
    250 
    251 
   252 253 
   
    254 
    255 
    256 
   257 258 
   
    259 
    260 
   261 262 263 264 
   265 
   274 275 
  
賣家資料
拍拍帳號
賣家暱稱
所屬地區
開店時間
詳細資料 ">
店鋪綜合評分
商品與描述相符
賣家的服務態度
賣家發貨的速度
店鋪近30天服務狀況
平均退款速度
退款率
平均投訴處理速度
投訴率
投訴率 退款率
商品品質原因 商品品質原因
缺貨原因 缺貨原因
服務態度原因 服務態度原因
發貨速度原因
店鋪信用 好評率:
266 267 268 269 270 271 272
好評 中評 差評
最近一周
最近一月
最近半年
總計
273
276 277 278 279
  • 聯繫我們

    該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

    如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

    A Free Trial That Lets You Build Big!

    Start building with 50+ products and up to 12 months usage for Elastic Compute Service

    • Sales Support

      1 on 1 presale consultation

    • After-Sales Support

      24/7 Technical Support 6 Free Tickets per Quarter Faster Response

    • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.