Shopify Scraper avatar
Shopify Scraper
Try for free

No credit card required

View all Actors
Shopify Scraper

Shopify Scraper

pocesar/shopify-scraper
Try for free

No credit card required

Automate monitoring prices on the most popular solution for building online stores and selling products online. Crawl arbitrary Shopify-powered online stores and extract a list of all products in a structured form, including product title, price, description, etc.

The code examples below show how to run the Actor and get its results. To run the code, you need to have an Apify account. Replace <YOUR_API_TOKEN> in the code with your API token, which you can find under Settings > Integrations in Apify Console. Learn mode

Node.js

Python

curl

1# Set API token
2API_TOKEN=<YOUR_API_TOKEN>
3
4# Prepare Actor input
5cat > input.json <<'EOF'
6{
7  "startUrls": [
8    {
9      "url": "https://www.decathlon.com"
10    }
11  ],
12  "maxRequestsPerCrawl": 10,
13  "proxyConfig": {
14    "useApifyProxy": true
15  },
16  "extendOutputFunction": "async ({ data, item, product, images, fns, name, request, variants, context, customData, input, Apify }) => {\n  return item;\n}",
17  "extendScraperFunction": "async ({ fns, customData, Apify, label }) => {\n \n}",
18  "customData": {},
19  "maxConcurrency": 10,
20  "maxRequestRetries": 3
21}
22EOF
23
24# Run the Actor using an HTTP API
25# See the full API reference at https://docs.apify.com/api/v2
26curl "https://api.apify.com/v2/acts/pocesar~shopify-scraper/runs?token=$API_TOKEN" \
27  -X POST \
28  -d @input.json \
29  -H 'Content-Type: application/json'
Developer
Community logoMaintained by Community
Actor metrics
  • 80 monthly users
  • 99.1% runs succeeded
  • Created in Jul 2021
  • Modified 9 months ago
Categories

You might also like these Actors