web scraping - Why is ImportXML not working for a specific field while trying to scrape kickstarter.com? -
i trying screen scrape funding status of specific kickstarter project. using following formula in google spreadsheet, trying here $ amount of project's funding status:
=importxml("http://www.kickstarter.com/projects/1904431672/trsst-a-distributed-secure-blog-platform-for-the-o","//data[@class='project942741362']") it returns #n/a in cell, comment:
error: xpath query did not return data.
when try using importxml on other parts of same webpage seems work well. please point out doing wrong here?
it seems tag "data" not correctly parsed.
a choice of workaround may be:
=regexextract(importxml("http://...", "//div[@id='pledged']"), "^\s*")
Comments
Post a Comment