Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/pin705/cf-scraper-bypass
A simple tool to scrape Cloudflare clearance cookies (cf_clearance) from websites with Cloudflare challenges.
https://github.com/pin705/cf-scraper-bypass
bypass cloudflare cloudflare-bypass nodejs recaptcha scraper-api
Last synced: 8 days ago
JSON representation
A simple tool to scrape Cloudflare clearance cookies (cf_clearance) from websites with Cloudflare challenges.
- Host: GitHub
- URL: https://github.com/pin705/cf-scraper-bypass
- Owner: pin705
- License: mit
- Created: 2024-07-17T03:22:09.000Z (4 months ago)
- Default Branch: main
- Last Pushed: 2024-07-17T08:00:55.000Z (4 months ago)
- Last Synced: 2024-09-18T11:03:55.606Z (2 months ago)
- Topics: bypass, cloudflare, cloudflare-bypass, nodejs, recaptcha, scraper-api
- Language: TypeScript
- Homepage:
- Size: 93.8 KB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# @pinjs/cf-scraper-bypass
[![npm version](https://img.shields.io/npm/v/@pinjs/cf-scraper-bypass?color=yellow)](https://npmjs.com/package/@pinjs/cf-scraper-bypass)
[![npm downloads](https://img.shields.io/npm/dm/@pinjs/cf-scraper-bypass?color=yellow)](https://npmjs.com/package/@pinjs/cf-scraper-bypass)A simple tool to scrape Cloudflare clearance cookies (cf_clearance) from websites with Cloudflare challenges.
## Usage
Install package:
```sh
# ✨ Auto-detect
npx nypm install @pinjs/cf-scraper-bypass# npm
npm install @pinjs/cf-scraper-bypass# yarn
yarn add @pinjs/cf-scraper-bypass# pnpm
pnpm install @pinjs/cf-scraper-bypass# bun
bun install @pinjs/cf-scraper-bypass
``````js
import Scraper from "@pinjs/cf-scraper-bypass";const scraper = new Scraper({
headless: false,
skip_chromium_download: false,
chromium_path: "/usr/bin/chromium-browser",
wait_for_network_idle: false,
PUP_TIMEOUT: 16_000,
});scraper
.proxy("https://google.com", {})
.then((res) => console.log(res));
```Import:
**ESM** (Node.js, Bun)
```js
import Scraper from "@pinjs/cf-scraper-bypass";
```**CommonJS** (Legacy Node.js)
```js
const Scraper = require("@pinjs/cf-scraper-bypass");
```**CDN** (Deno, Bun and Browsers)
```js
import Scraper from "https://esm.sh/@pinjs/cf-scraper-bypass";
```## Development
local development
- Clone this repository
- Install latest LTS version of [Node.js](https://nodejs.org/en/)
- Enable [Corepack](https://github.com/nodejs/corepack) using `corepack enable`
- Install dependencies using `pnpm install`
- Run interactive tests using `pnpm dev`## License
Published under the [MIT](https://github.com/pin705/cf-scraper-bypass/blob/main/LICENSE) license.
Made by [community](https://github.com/pin705/cf-scraper-bypass/graphs/contributors) 💛
---
_🤖 auto updated with [automd](https://automd.unjs.io)_