Asos Data Scraper

  • epctex/asos-scraper
  • Modified
  • Users 154
  • Runs 8.9k
  • Created by Author's avatarepctex

Asos Data Scraper allows seamless extraction of publicly available data from ASOS products. It efficiently gathers essential information such as images and descriptions. The actor's capabilities extend to supporting category URLs, enabling comprehensive scraping.

Free trial for 3 days

Then $30.00/month

No credit card required now

Asos Data Scraper

Free trial for 3 days

Then $30.00/month

To run the code examples, you need to have an Apify account. Replace <YOUR_API_TOKEN> in the code with your API token. For a more detailed explanation, please read about running Actors via the API in Apify Docs.

from apify_client import ApifyClient

# Initialize the ApifyClient with your API token
client = ApifyClient("<YOUR_API_TOKEN>")

# Prepare the Actor input
run_input = {
    "search": "women dress",
    "startUrls": [
        "https://www.asos.com/search/?q=women%27s+dress",
        "https://www.asos.com/asos-design/asos-design-barbie-necklace-in-gold-tone/prd/202940265?clr=gold&colourWayId=202940268&cid=27869",
        "https://www.asos.com/women/a-to-z-of-brands/aldo/cat/?cid=11476&refine=attribute_10992:61388&nlid=ww|shoes|shop+by+brand|aldo",
    ],
    "maxItems": 20,
    "endPage": 1,
    "extendOutputFunction": "($) => { return {} }",
    "customMapFunction": "(object) => { return {...object} }",
    "proxy": { "useApifyProxy": True },
}

# Run the Actor and wait for it to finish
run = client.actor("epctex/asos-scraper").call(run_input=run_input)

# Fetch and print Actor results from the run's dataset (if there are any)
for item in client.dataset(run["defaultDatasetId"]).iterate_items():
    print(item)