VOOZH about

URL: https://apify.com/getdataforme/amazon-scraper-products

โ‡ฑ Amazon Scraper Products ยท Apify


Pricing

from $9.00 / 1,000 results

Go to Apify Store

Amazon Scraper Products

Amazon scraper to scrape product details in amazon. Pass the url of the amazon listing for which we want to scrape and get details of the amazon product

Pricing

from $9.00 / 1,000 results

Rating

0.0

(0)

Developer

๐Ÿ‘ GetDataForMe

GetDataForMe

Maintained by Community

Actor stats

0

Bookmarked

4

Total users

1

Monthly active users

3 months ago

Last modified

Share

Scrape single-page in Python template

A template for web scraping data from a single web page in Python. The URL of the web page is passed in via input, which is defined by the input schema. The template uses the HTTPX to get the HTML of the page and the Beautiful Soup to parse the data from it. The data are then stored in a dataset where you can easily access them.

The scraped data in this template are page headings but you can easily edit the code to scrape whatever you want from the page.

Included features

  • Apify SDK for Python - a toolkit for building Apify Actors and scrapers in Python
  • Input schema - define and easily validate a schema for your Actor's input
  • Request queue - queues into which you can put the URLs you want to scrape
  • Dataset - store structured data where each object stored has the same attributes
  • HTTPX - library for making asynchronous HTTP requests in Python
  • Beautiful Soup - library for pulling data out of HTML and XML files

How it works

  1. Actor.get_input() gets the input where the page URL is defined
  2. httpx.AsyncClient().get(url) fetches the page
  3. BeautifulSoup(response.content, 'lxml') loads the page data and enables parsing the headings
  4. This parses the headings from the page and here you can edit the code to parse whatever you need from the page
    for heading in soup.find_all(["h1","h2","h3","h4","h5","h6"]):
  5. Actor.push_data(headings) stores the headings in the dataset

Resources

Getting started

For complete information see this article. To run the actor use the following command:

$apify run

Deploy to Apify

Connect Git repository to Apify

If you've created a Git repository for the project, you can easily connect to Apify:

  1. Go to Actor creation page
  2. Click on Link Git Repository button

Push project on your local machine to Apify

You can also deploy the project on your local machine to Apify without the need for the Git repository.

  1. Log in to Apify. You will need to provide your Apify API Token to complete this action.

    $apify login
  2. Deploy your Actor. This command will deploy and build the Actor on the Apify Platform. You can find your newly created Actor under Actors -> My Actors.

    $apify push

Documentation reference

To learn more about Apify and Actors, take a look at the following resources:

You might also like

Amazon Price Scraper

wilico/amazon-price-scraper

Extract product data from Amazon. Scrapes prices, availability, and product details without using the Amazon API.

41

5.0

Amazon EU Product Search & Offers

truenorth/amazon-eu-product-search-offers

Scrape all prices in one request for the main stores in the European market (Amazon.de, Amazon.fr, Amazon.it, Amazon.es, Amazon.co.uk)

My amazon-product-scraper

lsdflying/amazon-product-scraper

amazon-product-scraper

Amazon product scraper

unlimitedleadtestinbox/amazon-product-scraper

Use this Amazon scraper to collect data based on Amazon product URL from Amazon website. Extract product information including title, rating, prices, descriptions, and ASIN.

Amazon Product Scraper

junglee/Amazon-crawler

Use this Amazon scraper to collect data based on URL and country from the Amazon website. Extract product information without using the Amazon API, including reviews, prices, descriptions, and Amazon Standard Identification Numbers (ASINs). Download data in various structured formats.

Amazon Product Scraper

scrapeai/amazon-product-scraper

Use this Amazon scraper to collect data based on URL and country from the Amazon website. Extract product information without using the Amazon API, including reviews, prices, descriptions, and Amazon Standard Identification Numbers (ASINs). Download data in various structured formats.

Amazon Explorer

jupri/amazon-explorer

๐Ÿ’ซ Scrape Amazon products

Related articles

How to scrape Amazon product data using Python (+ no-code)
Read more