![Gab Search Scraper avatar](https://images.apifyusercontent.com/XSWJLfqV_JQEAKGmuDNcb0LOIoGfiI2rtxtWKkkoFLQ/rs:fill:250:250/aHR0cHM6Ly9hcGlmeS1pbWFnZS11cGxvYWRzLXByb2QuczMuYW1hem9uYXdzLmNvbS9Oa25abTVnd2o5a1pmaFhaWS9mRVFjcHc5R2NiMlM1eWVMNi1nYWIlMjgyJTI5LmpwZw.webp)
Gab Search Scraper
Try for free
Pay $1.00 for 1,000 results
View all Actors![Gab Search Scraper](https://images.apifyusercontent.com/XSWJLfqV_JQEAKGmuDNcb0LOIoGfiI2rtxtWKkkoFLQ/rs:fill:250:250/aHR0cHM6Ly9hcGlmeS1pbWFnZS11cGxvYWRzLXByb2QuczMuYW1hem9uYXdzLmNvbS9Oa25abTVnd2o5a1pmaFhaWS9mRVFjcHc5R2NiMlM1eWVMNi1nYWIlMjgyJTI5LmpwZw.webp)
![Gab Search Scraper](https://images.apifyusercontent.com/XSWJLfqV_JQEAKGmuDNcb0LOIoGfiI2rtxtWKkkoFLQ/rs:fill:250:250/aHR0cHM6Ly9hcGlmeS1pbWFnZS11cGxvYWRzLXByb2QuczMuYW1hem9uYXdzLmNvbS9Oa25abTVnd2o5a1pmaFhaWS9mRVFjcHc5R2NiMlM1eWVMNi1nYWIlMjgyJTI5LmpwZw.webp)
Gab Search Scraper
web.harvester/gab-search-scraper
Try for free
Pay $1.00 for 1,000 results
Scrape search results and accounts and groups' info as well as the posts and comments of accounts and groups 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 "searchQueries": [
12 "Cat"
13 ],
14 "searchType": "TOP",
15 "desiredPostsCount": 100,
16 "desiredCommentsCount": 0,
17 "desiredAccountsCount": 10,
18 "desiredGroupsCount": 10,
19 "accountPostsSortBy": "NEWEST",
20 "groupPostsSortBy": "NEWEST",
21 "commentsSortBy": "MOST_LIKED"
22};
23
24(async () => {
25 // Run the Actor and wait for it to finish
26 const run = await client.actor("web.harvester/gab-search-scraper").call(input);
27
28 // Fetch and print Actor results from the run's dataset (if any)
29 console.log('Results from dataset');
30 console.log(`πΎ Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
31 const { items } = await client.dataset(run.defaultDatasetId).listItems();
32 items.forEach((item) => {
33 console.dir(item);
34 });
35})();
36
37// π Want to learn more π? Go to β https://docs.apify.com/api/client/js/docs
Developer
Maintained by Community
Actor metrics
- 4 monthly users
- 3 stars
- 100.0% runs succeeded
- Created in Jun 2023
- Modified 8 months ago
Categories