'Google Sheets, Web scrape Best Buy Price
im trying to figure out how to web scrape the price of a product into google sheets. Before i would use =importrange(A1,B1)
And have B1 = /html/body/div[3]/main/div[2]/div/div[1]/div[3]/div[2]/div/div[1]/div[1]/div/div/div/div/div/div[2]/div[1]/div[1]/div/span[1]
This was done by coping the full Xpath. So far this has been working but unfortunately it seems like that is no longer a way to do it.
Im trying to do this for both Best Buy and Walmart
if i could have an example for these two links that would be awesome! Thank you in advanced!
Solution 1:[1]
Functions in Google Sheets like IMPORTHTML, IMPORTXML, IMPORTDATA and IMPORTFEED may not retrieve data from a website if the content is added dynamically(using JavaScript). I will reference this answer:
If the content is added dynamically (by using Javascript), it can't be imported by using Google Sheets built-in functions. Also if the website webmaster have taken certain measures, this functions will not able to import the data.
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|---|
| Solution 1 | Gabriel Carballo |
