Cheerio Scraper
Try for free
No credit card required
Go to Store
Cheerio Scraper
apify/cheerio-scraper
Try for free
No credit card required
You can access the Cheerio Scraper 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": "https://apify.com"
5 }
6 ],
7 "pseudoUrls": [
8 {
9 "purl": "https://apify.com[(/[\\\\w-]+)?]"
10 }
11 ],
12 "linkSelector": "a",
13 "pageFunction": "async function pageFunction(context) {\\n const { $, request, log } = context;\\n const title = $('\''title'\'').text();\\n log.info(`URL: ${request.url} TITLE: ${title}`);\\n return {\\n url: request.url,\\n title\\n };\\n}",
14 "proxyConfiguration": {
15 "useApifyProxy": false
16 },
17 "initialCookies": []
18}' |
19apify call apify/cheerio-scraper --silent --output-dataset
Cheerio Scraper API through CLI
The Apify CLI is the official tool that allows you to use Cheerio Scraper 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
>99% runs succeeded
Created in Apr 2019
Modified 6 years ago