Lobsters Scraper avatar
Lobsters Scraper
Try for free

3 days trial then $10.00/month - No credit card required now

View all Actors
Lobsters Scraper

Lobsters Scraper

epctex/lobsters-scraper
Try for free

3 days trial then $10.00/month - No credit card required now

Scrape Lobste.rs posts and users based on any search criteria. Retrieve all the comments, domains, tags, titles, number of upvotes, and published dates. Use this extremely fast actor to retrieve all the information right away. Easy use and no limits!

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 API token
4const client = new ApifyClient({
5    token: '<YOUR_API_TOKEN>',
6});
7
8// Prepare Actor input
9const input = {
10    "startUrls": [
11        "https://lobste.rs/domains/google.com",
12        "https://lobste.rs/t/devops",
13        "https://lobste.rs/u/lambda",
14        "https://lobste.rs/active",
15        "https://lobste.rs/recent",
16        "https://lobste.rs/search?q=google&what=stories&order=newest"
17    ],
18    "maxItems": 20,
19    "endPage": 1,
20    "extendOutputFunction": ($) => { return {} },
21    "customMapFunction": (object) => { return {...object} },
22    "proxy": {
23        "useApifyProxy": true
24    }
25};
26
27(async () => {
28    // Run the Actor and wait for it to finish
29    const run = await client.actor("epctex/lobsters-scraper").call(input);
30
31    // Fetch and print Actor results from the run's dataset (if any)
32    console.log('Results from dataset');
33    const { items } = await client.dataset(run.defaultDatasetId).listItems();
34    items.forEach((item) => {
35        console.dir(item);
36    });
37})();
Developer
Community logoMaintained by Community
Actor metrics
  • 1 monthly users
  • 100.0% runs succeeded
  • Modified about 11 hours ago

You might also like these Actors