google spreadsheet - Extract website data into Excel Sheet -


i wanna extract rating of hotel room expedia in google sheet. unfortunatley, code doesn't work. can take look?

=importxml(https://www.expedia.co.in/manila-hotels-zen-rooms-pioneer-street.h17368867.hotel-information,"//span[@class='rating-number']") 

importxml() can import simple html, not work of modern sites. in case too, importxml() not able retrieve div, span, etc. nevertheless, can whole html , parse it.

just change xpath query //html. , seen source, know , how find rating. =mid(a2, find("out of 5.0", a2)-4, 3).

sample sheet here. tested few other hotels , worked fine.


Comments

Popular posts from this blog

commonjs - How to write a typescript definition file for a node module that exports a function? -

openid - Okta: Failed to get authorization code through API call -

thorough guide for profiling racket code -