我想要報廢ebay的產品列表。我可以得到除圖像源的所有信息。我的查詢檢索圖像的所有信息,即ALT,高度等,但不檢索源。刮圖片關閉Ebay
One of the product link I am trying to scrape.
http://www.ebay.com.au/itm/REAR-RAISED-KING-SPRINGS-2-03-ON-TOYOTA-L-CRUISER-PRADO-120-150-GX-KTPR-102-/170945971135?pt=AU_Car_Parts_Accessories&hash=item27cd2c83bf
Query I used
$query1=".//*[@id='i_vv4-35']";
Test to chek if attribute exist returns nothing.
$element1->hasAttribute('src')
Get attribute method.
$element1->getAttribute('src')
問候 Abnab
不偷,問題就解決了 – 2013-02-14 03:12:38