Reputation: 77
I'm facing a weird error while trying import data from this link: https://www.atproperties.com/472719 using XPath //li[@class="active"] I'm confused cause there is no problem getting data from a similar source: https://www.atproperties.com/370926 using the same XPath. Both hyperlinks are opening the same way in chrome browser and have the same XPath. Here is the link to the spreadsheet. Any help will be appreciated. Thanks.
Upvotes: 1
Views: 436
Reputation: 5905
Use IMPORTDATA
, INDEX
and REGEXEXTRACT
for this specific case :
=REGEXEXTRACT(INDEX(IMPORTDATA(B2);9;1);" - (.+)")&", "&INDEX(IMPORTDATA(B2);9;2)
Output :
Side note : your XPath should be fixed as followed : (//li[@class="active"])[1]
Upvotes: 1