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

https://github.com/alxgmpr/cfworker

🌩Grab CF tokens from a headless browser so they can be used in a request based environment.
https://github.com/alxgmpr/cfworker

cloudflare headless puppeteer

Last synced: 21 days ago
JSON representation

🌩Grab CF tokens from a headless browser so they can be used in a request based environment.

Awesome Lists containing this project

README

        

# CF Worker

```js
const worker = require('./cfworker.js');

// then you create instance

const w = new Worker('proxy', 'link');

// then solve the challenge
await worker.getNewCfToken();

// then you can get the request options from the worker

console.dir(w.requestOptions.headers)
```

Edit some settings in `config.js`