Web Scraper new avatar
Web Scraper new

Under maintenance

Pricing

Pay per event

Go to Store
Web Scraper new

Web Scraper new

Under maintenance

Developed by

Jan Kirchner

Jan Kirchner

Maintained by Community

The scraper of Web

5.0 (1)

Pricing

Pay per event

1

Total users

3

Monthly users

3

Last modified

a month ago

You can access the Web Scraper new programmatically from your own applications by using the Apify API. You can also 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.

$echo '{
< "startUrls": [
< {
< "url": "https://apify.com"
< }
< ],
< "linkSelector": "a[href]",
< "pseudoUrls": [
< {
< "purl": "https://apify.com[(/[\\\\w-]+)?]"
< }
< ],
< "pageFunction": "// The function accepts a single argument: the \\"context\\" object.\\n// For a complete list of its properties and functions,\\n// see https://apify.com/apify/web-scraper#page-function \\nasync function pageFunction(context) {\\n // jQuery is handy for finding DOM elements and extracting data from them.\\n // To use it, make sure to enable the \\"Inject jQuery\\" option.\\n const $ = context.jQuery;\\n const pageTitle = $('\''title'\'').first().text();\\n\\n // Print some information to actor log\\n context.log.info(`URL: ${context.request.url}, TITLE: ${pageTitle}`);\\n\\n // Manually add a new page to the queue for scraping.\\n // To make this work, make sure the \\"Use request queue\\" option is enabled.\\n context.enqueueRequest({ url: '\''http://www.example.com'\'' });\\n\\n // Return an object with the data extracted from the page.\\n // It will be stored to the resulting dataset.\\n return {\\n url: context.request.url,\\n pageTitle\\n };\\n}",
< "proxyConfiguration": {
< "useApifyProxy": false
< },
< "initialCookies": [],
< "waitUntil": [
< "networkidle2"
< ],
< "customData": {}
<}' |
<apify call honzakirchner43/web-scraper-new --silent --output-dataset

Web Scraper new API through CLI

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

Install the Apify CLI

$npm i -g apify-cli
$apify login

Other API clients include: