Allegro Product Detail Scraper avatar
Allegro Product Detail Scraper
Try for free

Pay $2.50 for 1,000 Products

View all Actors
Allegro Product Detail Scraper

Allegro Product Detail Scraper

tri_angle/allegro-product-detail-scraper
Try for free

Pay $2.50 for 1,000 Products

Allegro Scraper allows you to scrape data from allegro.pl, allegro.cz and allegro.sk, one of the most popular online shopping platforms in Europe and the largest e-commerce platform of European origin.

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 more

1import { ApifyClient } from 'apify-client';
2
3// Initialize the ApifyClient with your Apify API token
4const client = new ApifyClient({
5    token: '<YOUR_API_TOKEN>',
6});
7
8// Prepare Actor input
9const input = {
10    "startUrls": [
11        "https://allegro.pl/oferta/procesor-intel-i9-12900k-16-x-3-2-ghz-12375564256",
12        "https://allegro.pl/dzial/moda",
13        "https://allegro.pl/kategoria/komputery",
14        "https://allegro.pl/magazyn-allegro",
15        "https://allegro.pl/uzytkownik/www_comtrade_pl"
16    ],
17    "maxProducts": 30,
18    "searchQueries": [
19        "Processor"
20    ],
21    "searchDomains": [
22        "allegro.pl"
23    ]
24};
25
26(async () => {
27    // Run the Actor and wait for it to finish
28    const run = await client.actor("tri_angle/allegro-product-detail-scraper").call(input);
29
30    // Fetch and print Actor results from the run's dataset (if any)
31    console.log('Results from dataset');
32    console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
33    const { items } = await client.dataset(run.defaultDatasetId).listItems();
34    items.forEach((item) => {
35        console.dir(item);
36    });
37})();
38
39// 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/js/docs
Developer
Maintained by Apify
Actor metrics
  • 6 monthly users
  • 4 stars
  • 100.0% runs succeeded
  • 21 hours response time
  • Created in Apr 2024
  • Modified about 2 months ago
Categories