An open API service indexing awesome lists of open source software.

https://github.com/skoniks/cf-bypass


https://github.com/skoniks/cf-bypass

Last synced: 4 months ago
JSON representation

Awesome Lists containing this project

README

        

# @sknx/cf-bypass

Cloudflare turnstile bypass based on playwrignt headed browser and rucaptcha.

Api key required for work can be obtained from here https://rucaptcha.com/

Running headed: https://playwright.dev/docs/ci#running-headed

# Usage

```javascript
import { bypass, newPage } from '@sknx/cf-bypass';

const url = 'https://site.com';
const key = 'rucaptcha_api_token';
const proxy = 'http://user:[email protected]:1234';
// const proxy = 'socks://user:[email protected]:1234';

try {
const { page, fingerprint } = await newPage({ proxy });
const { cookies } = await bypass(url, key, page, proxy);
await page.context().close();
console.log(cookies, fingerprint);
} catch (error) {
console.log(error);
}
```