Crawler Puppeteer avatar

Crawler Puppeteer

Try for free

No credit card required

Go to Store
Crawler Puppeteer

Crawler Puppeteer

jancurn/crawler-puppeteer
Try for free

No credit card required

Copy of https://github.com/apifytech/actor-crawler-puppeteer

You can access the Crawler Puppeteer programmatically from your own applications by using the Apify API. You can choose the language preference from below. To use the Apify API, you’ll need an Apify account and your API token, found in Integrations settings in Apify Console.

1echo '{
2  "startUrls": [
3    {
4      "url": "http://example.com"
5    },
6    {
7      "url": "http://iana.org"
8    }
9  ],
10  "pseudoUrls": [
11    {
12      "purl": "https://www.iana.org/[((?!\\\\.pdf$).)*]"
13    }
14  ],
15  "linkSelector": "a",
16  "pageFunction": "async ({ request, page, keyValueStore, log }) => {\\n    const title = await page.title();\\n    log.info(`Title of page with url ${request.url} is: ${title}`);\\n    await keyValueStore.setValue(Math.random().toString(36), { title });\\n    return { title }\\n}",
17  "proxyConfiguration": {
18    "useApifyProxy": false
19  }
20}' |
21apify call jancurn/crawler-puppeteer --silent --output-dataset

Crawler Puppeteer API through CLI

The Apify CLI is the official tool that allows you to use Crawler Puppeteer locally, providing convenience functions and automatic retries on errors.

Install the Apify CLI

1npm i -g apify-cli
2apify login

Other API clients include:

Developer
Maintained by Community

Actor Metrics

  • 1 monthly user

  • 2 stars

  • 50% runs succeeded

  • Created in Jan 2019

  • Modified 6 years ago

Categories