Gab Marketplace Scraper avatar
Gab Marketplace Scraper
Try for free

Pay $1.00 for 1,000 results

View all Actors
Gab Marketplace Scraper

Gab Marketplace Scraper

web.harvester/gab-marketplace-scraper
Try for free

Pay $1.00 for 1,000 results

Scrape marketplace listings from Gab's website. Download your data in any format (JSON, CSV, XML, RSS, HTML Table). Seamless integration with apps, reports, and databases.

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    "marketplaceSearchQueries": [
12        "Cream"
13    ],
14    "desiredMarketplaceListingsCount": 100,
15    "marketplaceSortBy": "NEWEST",
16    "marketplaceCategory": "ALL",
17    "marketplaceCondition": "ALL",
18    "marketplacePriceFrom": 0,
19    "marketplacePriceTo": 99999,
20    "marketplaceShipping": "ALL",
21    "marketplaceLocation": "",
22    "marketplaceTags": []
23};
24
25(async () => {
26    // Run the Actor and wait for it to finish
27    const run = await client.actor("web.harvester/gab-marketplace-scraper").call(input);
28
29    // Fetch and print Actor results from the run's dataset (if any)
30    console.log('Results from dataset');
31    console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
32    const { items } = await client.dataset(run.defaultDatasetId).listItems();
33    items.forEach((item) => {
34        console.dir(item);
35    });
36})();
37
38// 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/js/docs
Developer
Maintained by Community
Actor metrics
  • 1 monthly user
  • 2 stars
  • 100.0% runs succeeded
  • Created in Jun 2023
  • Modified 7 months ago