jeudi 27 mars 2014

importxml versus Google Scraper - booking.com


Vote count:

0




I am trying to get a list of Hotels from booking.com


It works pretty well with Google Scrapper extension.


The URL is: http://ift.tt/1gGOXGB


I have this xPaths on Scrapper:


Link: //*[@id="hotellist_inner"]/div/div[@class="sr_item_content"]


Hotel Name: h3/a


But it does not work if inserted in a formula on Google Sheet like below:


=importxml("http://ift.tt/1gGOXGB","//*[@id='hotellist_inner']/div/div[@class='sr_item_content']/h3/a")


It results in "Error: Resource at url not found."


Could that be the long URL call? With other shorter URLs it works. However, I've shortned it up with Goo.gl but it also did not work.


Could anybody help me?



asked 22 secs ago






Aucun commentaire:

Enregistrer un commentaire