{"id":18710755,"url":"https://github.com/apify/actor-crawler-cheerio","last_synced_at":"2025-11-03T16:33:01.153Z","repository":{"id":103060349,"uuid":"136483976","full_name":"apify/actor-crawler-cheerio","owner":"apify","description":"DEPRECATED: An actor that crawls websites and parses HTML pages using Cheerio library. Supports recursive crawling as well as URL lists.","archived":false,"fork":false,"pushed_at":"2022-07-25T12:39:13.000Z","size":139,"stargazers_count":1,"open_issues_count":1,"forks_count":1,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-02-16T16:19:52.991Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://www.apify.com/apify/crawler-cheerio","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/apify.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2018-06-07T13:48:23.000Z","updated_at":"2022-10-20T16:47:43.000Z","dependencies_parsed_at":null,"dependency_job_id":"5e026e3c-ec7e-4067-8fe1-10b8f5aa1c94","html_url":"https://github.com/apify/actor-crawler-cheerio","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/apify%2Factor-crawler-cheerio","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/apify%2Factor-crawler-cheerio/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/apify%2Factor-crawler-cheerio/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/apify%2Factor-crawler-cheerio/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/apify","download_url":"https://codeload.github.com/apify/actor-crawler-cheerio/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":239576343,"owners_count":19662108,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-07T12:35:35.751Z","updated_at":"2025-11-03T16:33:01.123Z","avatar_url":"https://github.com/apify.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# DEPRECATED: Apify Crawler Cheerio\n\nVisit https://github.com/apifytech/actor-scraper/tree/master/cheerio-scraper for the current version.\n\n\u003c!-- toc --\u003e\n\n- [How it works](#how-it-works)\n- [Input](#input)\n  * [Page function](#page-function)\n- [Output](#output)\n  * [Dataset](#dataset)\n\n\u003c!-- tocstop --\u003e\n\n## How it works\n\nCrawler Cheerio is a ready-made solution for crawling the web using plain HTTP requests to retrieve HTML pages\nand then parsing and inspecting the HTML using the [Cheerio](https://www.npmjs.com/package/cheerio) NPM package.\n\nCheerio is a server-side version of the popular [jQuery](https://jquery.com) library, that does not run in the\nbrowser, but instead constructs a DOM out of a HTML string and then provides the user with API to work with that\nDOM.\n\nCrawler Cheerio is ideal for scraping websites that do not rely on client-side JavaScript to serve their content.\nIt can be as much as 20 times faster than using a full browser solution such as Puppeteer.\n\n## Input\nInput is provided via the pre-configured form. See the tooltips for more info on the available options.\n\n### Page function\nPage function enables the user to control the Crawler's operation, manipulate the received HTML\nand extract data as needed. It is invoked with a `context` object containing the following properties:\n\n```js\nconst context = {\n    actorId, // ID of this actor.\n    runId, // ID of the individual actor run.\n    request, // Apify.Request object.\n    response, // http.IncomingMessage object (Node.js server response).\n    html, // The scraped HTML string.\n    $, // Cheerio, with the HTML already loaded and ready to use.\n    customData, // Value of the 'Custom data' Crawler option.\n    requestList, // Reference to the run's default Apify.RequestList.\n    requestQueue, // Reference to the run's default Apify.RequestQueue.\n    dataset, // Reference to the run's default Apify.Dataset.\n    keyValueStore, // Reference to the run's default Apify.KeyValueStore.\n    input, // Unaltered original input as parsed from the UI.\n    client, // Reference to the an instance of the Apify.client.\n    log, // Reference to Apify.utils.log\n    \n    // Utility functions that simplify some common tasks.\n    // See https://www.apify.com/docs/crawler#pageFunction for docs.\n    skipLinks,\n    skipOutput,\n    enqueuePage,\n}\n```\n\n## Output\n\nOuput is a dataset containing extracted data for each scraped page.\n\n### Dataset\nFor each of the scraped URLs, the dataset contains an object with results and some metadata.\nIf you were scraping the HTML `\u003ctitle\u003e` of [IANA](https://www.iana.org/) it would look like this:\n\n```json\n{\n  \"title\": \"Internet Assigned Numbers Authority\",\n  \"#error\": false,\n  \"#debug\": {\n    \"url\": \"https://www.iana.org/\",\n    \"method\": \"GET\",\n    \"retryCount\": 0,\n    \"errorMessages\": null,\n    \"requestId\": \"e2Hd517QWfF4tVh\"\n  }\n}\n```\n\nThe metadata are prefixed with a `#`. Soon you will be able to exclude the metadata\nfrom the results by providing an API flag.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fapify%2Factor-crawler-cheerio","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fapify%2Factor-crawler-cheerio","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fapify%2Factor-crawler-cheerio/lists"}