{"id":15478362,"url":"https://github.com/danielfsousa/jcrawler","last_synced_at":"2025-10-10T12:08:06.488Z","repository":{"id":57279926,"uuid":"113512562","full_name":"danielfsousa/jcrawler","owner":"danielfsousa","description":":vertical_traffic_light: Asynchronous control flow wrapper to crawl websites","archived":false,"fork":false,"pushed_at":"2018-05-08T20:01:33.000Z","size":36,"stargazers_count":5,"open_issues_count":1,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-06-28T20:06:11.377Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/danielfsousa.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2017-12-08T00:29:19.000Z","updated_at":"2019-12-30T10:51:38.000Z","dependencies_parsed_at":"2022-09-11T18:21:17.889Z","dependency_job_id":null,"html_url":"https://github.com/danielfsousa/jcrawler","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"purl":"pkg:github/danielfsousa/jcrawler","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/danielfsousa%2Fjcrawler","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/danielfsousa%2Fjcrawler/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/danielfsousa%2Fjcrawler/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/danielfsousa%2Fjcrawler/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/danielfsousa","download_url":"https://codeload.github.com/danielfsousa/jcrawler/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/danielfsousa%2Fjcrawler/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":267191036,"owners_count":24050318,"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","status":"online","status_checked_at":"2025-07-26T02:00:08.937Z","response_time":62,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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-10-02T04:03:43.852Z","updated_at":"2025-10-10T12:08:01.457Z","avatar_url":"https://github.com/danielfsousa.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# jcrawler\n\nAsynchronous control flow wrapper to crawl websites\n\n## How to Install\n\n```bash\n  npm install jcrawler\n```\n\n## Usage\n\n```javascript\n  const jcrawler = require('jcrawler')\n  const puppeteer = require('puppeteer')\n\n  (async () =\u003e {\n    const crawler = jcrawler({\n      puppeteer,\n      concurrency: 2,\n      rateLimit: 1000, // 1 second\n      retries: 5,\n      retryInterval: 1000, // 1 second\n      backoff: 2, // multiplies the retryInterval for each retry\n      log: true\n    })\n\n    crawler\n      .on('data', data =\u003e console.log(data)) // events: data, error and end\n      .on('error', err =\u003e console.error(err))\n      .on('end', (data, results) =\u003e console.log(results.timer.time))\n\n    const fruits = ['apple', 'banana', 'orange']\n\n    await crawler.each(fruits, async (browser, page, fruit) =\u003e {\n      // using puppeteer\n      await page.goto('http://google.com')\n      await page.type(\"input[title='Search']\", fruit)\n      await page.click(\"input[value=\\\"I'm Feeling Lucky\\\"]\")\n      await page.screenshot({ path: `${fruit}.png`) })\n    })\n  })()\n```\n\n## License\n\n[MIT License](README.md) - [Daniel Sousa](https://github.com/danielfsousa)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdanielfsousa%2Fjcrawler","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdanielfsousa%2Fjcrawler","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdanielfsousa%2Fjcrawler/lists"}