
Asos Data Scraper
epctex/asos-scraper
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.
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
import { ApifyClient } from 'apify-client';
// Initialize the ApifyClient with API token
const client = new ApifyClient({
token: '<YOUR_API_TOKEN>',
});
// Prepare Actor input
const 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
}
};
(async () => {
// Run the Actor and wait for it to finish
const run = await client.actor("epctex/asos-scraper").call(input);
// Fetch and print Actor results from the run's dataset (if any)
console.log('Results from dataset');
const { items } = await client.dataset(run.defaultDatasetId).listItems();
items.forEach((item) => {
console.dir(item);
});
})();
Developer
Maintained by Community
Actor stats
- 156 users
- 9.1k runs
- Modified about 7 hours ago
Categories