Reputation: 13
I'm new to xpath and scraping pages. I need to extract a link to the developer website from google play app page (Developer -> Visit Website) by using importxml function in google sheets. Tried several approaches, didn't work:
Before scraping google play page, I had similar task for AppStore and came up with following formula that didn't work on Google Play: importxml(link; "//section[contains(@class,'section--link-list')]/ul/li[1]/a/@href")
For me the main issue now that the path to the website link is correct in the first two cases, but I cannot get any link at all. Can you please advice me how to scrape it correctly?
Thank you in advance!
Upvotes: 1
Views: 180
Reputation: 1
try:
=REGEXEXTRACT(QUERY(FLATTEN(IMPORTDATA(A1)),
"where Col1 starts with 'url:'
and Col1 ends with '}'", 0), """(.*)""")
Upvotes: 0