Gab Scraper avatar
Gab Scraper
Try for free

Pay $1.00 for 1,000 results

View all Actors
Gab Scraper

Gab Scraper

web.harvester/gab-scraper
Try for free

Pay $1.00 for 1,000 results

This actor scrapes searches, profiles, groups, and feeds URLs, as well as their posts and comments from the https://gab.com website.

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

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        {
12            "url": "https://gab.com/Ori"
13        }
14    ],
15    "desiredPostsCount": 100,
16    "desiredCommentsCount": 0,
17    "commentsSortBy": "MOST_LIKED",
18    "accountPostsSortBy": "NEWEST",
19    "groupPostsSortBy": "NEWEST",
20    "desiredAccountsCount": 100,
21    "desiredGroupsCount": 100
22};
23
24(async () => {
25    // Run the Actor and wait for it to finish
26    const run = await client.actor("web.harvester/gab-scraper").call(input);
27
28    // Fetch and print Actor results from the run's dataset (if any)
29    console.log('Results from dataset');
30    const { items } = await client.dataset(run.defaultDatasetId).listItems();
31    items.forEach((item) => {
32        console.dir(item);
33    });
34})();
Developer
Maintained by Community
Actor metrics
  • 2 monthly users
  • 96.7% runs succeeded
  • 0.0 days response time
  • Created in May 2023
  • Modified 3 months ago