2013-02-14 33 views
0

我想要報廢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

+2

不偷,問題就解決了 – 2013-02-14 03:12:38

回答

0

你可以或者您可以通過URL(170945971135)的ID和刮以下網址的圖像

http://cgi.ebay.com.au/ws/eBayISAPI.dll?VISuperSize&item=170945971135

+0

試過了。但問題是嘗試在新標籤中打開該鏈接。圖像永不加載:( – abnab 2013-02-14 04:49:33