Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
pin705 authored Jul 17, 2024
1 parent a970fc3 commit f65409f
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,25 @@ pnpm install @pinjs/cf-scraper-bypass
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](https://nopecha.com/demo/cloudflare)", {
query: { foo: "bar" },
headers: { "User-Agent": "Mozilla/5.0" },
})
.then((res) => console.log(res));

Check failure on line 51 in README.md

View workflow job for this annotation

GitHub Actions / ci

Prefer top-level await over using a promise chain
```

<!-- /automd -->

Import:
Expand Down

0 comments on commit f65409f

Please sign in to comment.