{"id":20496309,"url":"https://github.com/samhuk/stealthy-scraper","last_synced_at":"2025-04-13T18:21:13.910Z","repository":{"id":61612478,"uuid":"552984026","full_name":"samhuk/stealthy-scraper","owner":"samhuk","description":"Extra stealthy web scraper in Typescript","archived":false,"fork":false,"pushed_at":"2022-10-19T16:21:01.000Z","size":23,"stargazers_count":25,"open_issues_count":0,"forks_count":1,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-04-05T22:41:17.265Z","etag":null,"topics":["puppeteer","scraper","stealth","typescript"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","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/samhuk.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"contributing/development.md","funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2022-10-17T14:28:49.000Z","updated_at":"2024-07-31T16:45:02.000Z","dependencies_parsed_at":"2022-10-20T03:00:49.112Z","dependency_job_id":null,"html_url":"https://github.com/samhuk/stealthy-scraper","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":"samhuk/ts-npm-package-template","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/samhuk%2Fstealthy-scraper","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/samhuk%2Fstealthy-scraper/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/samhuk%2Fstealthy-scraper/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/samhuk%2Fstealthy-scraper/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/samhuk","download_url":"https://codeload.github.com/samhuk/stealthy-scraper/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248758988,"owners_count":21157069,"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":["puppeteer","scraper","stealth","typescript"],"created_at":"2024-11-15T18:06:28.360Z","updated_at":"2025-04-13T18:21:13.885Z","avatar_url":"https://github.com/samhuk.png","language":"TypeScript","funding_links":["https://www.buymeacoffee.com/samhuk"],"categories":[],"sub_categories":[],"readme":"\u003ch1 align=\"center\"\u003estealthy-scraper\u003c/h1\u003e\n\u003cp align=\"center\"\u003e\n  \u003cem\u003eExtra stealthy web scraper in Typescript\u003c/em\u003e\n\u003c/p\u003e\n\n\u003cp align=\"center\"\u003e\n  \u003ca href=\"https://img.shields.io/badge/License-MIT-green.svg\" target=\"_blank\"\u003e\n    \u003cimg src=\"https://img.shields.io/badge/License-MIT-green.svg\" alt=\"license\" /\u003e\n  \u003c/a\u003e\n  \u003ca href=\"https://badge.fury.io/js/stealthy-scraper.svg\" target=\"_blank\"\u003e\n    \u003cimg src=\"https://badge.fury.io/js/stealthy-scraper.svg\" alt=\"npm version\" /\u003e\n  \u003c/a\u003e\n\u003c/p\u003e\n\n## Overview\n\nstealthy-scraper is a wrapper around [puppeteer-extra](https://github.com/berstend/puppeteer-extra) that adds additional stealth functionality and other helpful features.\n\n## Why to use\n\n* If puppeteer's `Page.goto` and `Browser.newPage` is being detected. stealthy-scraper has a `newBrowser` function as an alternative way to navigate to a new url which is more reliable.\n* If puppeteer's default word typing is being detected. stealthy-scraper has a `safeType` function that better mimicks human typing behavior.\n* When you want to more neatly centralize all of the puppeteer, puppeteer-extra, and puppeteer-extra's plugin dependencies into one package.\n\n## Usage Overview\n\n`npm i --save stealthy-scraper`\n\n```typescript\nimport { createScraper } from 'stealthy-scraper'\nconst scraper = await createScraper({\n  puppeteerOptions: {\n    headless: true,\n    ...\n  },\n  snapshotsDirPath: './scraper-snapshots',\n})\nawait scraper.page.goto('difficultoscrape.com')\nconst searchTextInput = await scraper.page.waitForSelector('...')\nawait scraper.safeType(searchTextInput, 'my search term')\n// ...\nawait scraper.newBrowser(newUrlFromSearchResults)\nawait scraper.close()\n```\n\n## Development\n\nSee [./contributing/development.md](./contributing/development.md)\n\n## Disclaimer\n\nI do not condone the usage of this package for malevolent purposes. Please be very curtious and a good citizen when using it. I do not take any responsibility for any damages you incur on yourself (e.g. IP blacklisted) or others (e.g. DoS) through any use of this package.\n\n---\n\nIf you found this package delightful, feel free to buy me a coffee ✨\n\n\u003ca href=\"https://www.buymeacoffee.com/samhuk\" target=\"_blank\"\u003e\u003cimg src=\"https://cdn.buymeacoffee.com/buttons/v2/default-yellow.png\" alt=\"Buy Me A Coffee\" style=\"height: 60px !important;width: 217px !important;\" \u003e\u003c/a\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsamhuk%2Fstealthy-scraper","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsamhuk%2Fstealthy-scraper","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsamhuk%2Fstealthy-scraper/lists"}