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.
- Host: GitHub
- URL: https://github.com/alxgmpr/cfworker
- Owner: alxgmpr
- Created: 2019-06-12T16:43:23.000Z (almost 6 years ago)
- Default Branch: master
- Last Pushed: 2019-06-12T22:23:31.000Z (almost 6 years ago)
- Last Synced: 2025-04-14T07:08:44.100Z (21 days ago)
- Topics: cloudflare, headless, puppeteer
- Language: JavaScript
- Homepage:
- Size: 46.9 KB
- Stars: 6
- Watchers: 0
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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`