Hi everyone!
I am new to google sheets and I was wondering if anyone could point me to a tool/Macro that scrapes specific information from Amazon?
In some cases I wish to fetch the Bullet points, other times product description, and I do have the list of ASINS (Barcode) that can be found in the URL of the individual products.
I wish to put the ASIN in one column and the next column it will scrape information from that ASIN.
Have anyone ever heard of a tool/macro like that?
any help is much appreciated
Perhaps the IMPORTHTML function would be of use? See https://support.google.com/docs/answer/3093339?hl=en
A quick Google search also appears to pull up a number of add-ones that sound like they do something similar to what you described (Import Amazon pages to Google Sheets), but I donโt know anything about them.
Hope that helps,
Ian
Yes, there are various ways to scrape information from Amazon using Google Sheets. One popular approach is to use a combination of the IMPORTXML or IMPORTHTML function along with XPath or CSS selectors to extract specific information from the Amazon product page.
Here's a step-by-step guide on how you can achieve this:
Open a new Google Sheet.
In cell A1, enter "ASIN" as the header for the ASIN column.
In cell B1, enter "Product Information" as the header for the information column.
In column A, starting from cell A2, enter the ASINs (Barcodes) for the products you want to scrape information from.
In cell B2, enter the following formula to scrape the product information:
This formula uses the IMPORTXML function to fetch the product title from the Amazon product page. Replace "//span[@id='productTitle']" with the appropriate XPath or CSS selector to extract the desired information such as bullet points or product description.
Drag the formula in cell B2 down to apply it to the remaining rows in column B.
The formula in cell B2 will fetch the product information based on the ASIN provided in column A. You can modify the formula and XPath/CSS selector as per your specific requirements to extract other information. Please note that web scraping may violate the terms of service of some websites, including Amazon. Make sure to review and comply with the website's terms of use and scraping policy.
is there a way for us to import as well the product rating from amazon?
Yes, you can create a custom Google Sheets script using Google Apps Script to scrape specific information from Amazon using the ASINs (Amazon Standard Identification Numbers). This involves sending HTTP requests to the Amazon product pages and then parsing the HTML to extract the desired information.
However, it's important to note that web scraping might go against Amazon's terms of service, and they might have measures in place to prevent or detect scraping activities. Always make sure you are complying with the website's terms and policies.
Here's a high-level guide on how to create a basic Google Apps Script to scrape information from Amazon:
Open Google Sheets: Open a new or existing Google Sheet where you want to store the scraped information.
Enable Google Apps Script: Go to Extensions > Apps Script to open the Google Apps Script editor.
Write the Script: In the Apps Script editor, you can use JavaScript to write the script. Here's a simplified example of how you might approach scraping Amazon product titles using ASINs:
Remember that this is a very basic example, and actual web scraping can be more complex, especially dealing with different HTML structures on various Amazon pages. Also, scraping might break if Amazon's HTML structure changes. Additionally, web scraping might be against Amazon's terms of service.