@letsscrapedata/controller 0.0.60 → 0.0.63
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +3 -3
- package/readme.md +3 -2
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@letsscrapedata/controller",
|
|
3
|
-
"version": "0.0.
|
|
4
|
-
"description": "Unified browser / HTML controller interfaces that support playwright, puppeteer and cheerio",
|
|
3
|
+
"version": "0.0.63",
|
|
4
|
+
"description": "Unified browser / HTML controller interfaces that support patchright, camoufox, playwright, puppeteer and cheerio",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.cjs",
|
|
7
7
|
"module": "./dist/index.js",
|
|
@@ -47,7 +47,7 @@
|
|
|
47
47
|
],
|
|
48
48
|
"dependencies": {
|
|
49
49
|
"@letsscrapedata/utils": "^0.0.26",
|
|
50
|
-
"camoufox-js-lsd": "^0.6.
|
|
50
|
+
"camoufox-js-lsd": "^0.6.4",
|
|
51
51
|
"cheerio": "^1.0.0",
|
|
52
52
|
"patchright": "^1.52.5",
|
|
53
53
|
"playwright": "^1.43.0",
|
package/readme.md
CHANGED
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
|
|
14
14
|
## Features
|
|
15
15
|
This package is used by [@letsscrapedata/scraper](https://www.npmjs.com/package/@letsscrapedata/scraper) to facilitate switching between different types of browser controllers and to facilitate support for the new anti-bot browser controller without modifying existing programs.
|
|
16
|
-
* Same interface of playwright, puppeteer, cheerio
|
|
16
|
+
* Same interface of patchright, camoufox, playwright, puppeteer, cheerio: easy to switch between them
|
|
17
17
|
* Web browsing automation: goto(open) / click / input / hover / select / scroll
|
|
18
18
|
* State data management: cookies, localStorage, HTTP Headers, custom session data
|
|
19
19
|
* Request and response interception management: data and HTTP headers
|
|
@@ -33,7 +33,8 @@ npm install @letsscrapedata/controller
|
|
|
33
33
|
```typescript
|
|
34
34
|
import { controller } from "@letsscrapedata/controller";
|
|
35
35
|
|
|
36
|
-
const browser = await controller.launch("
|
|
36
|
+
const browser = await controller.launch("patchright", "chromium", { headless: false });
|
|
37
|
+
// const browser = await controller.launch("camoufox", "firefox", { headless: false });
|
|
37
38
|
const browserContext = await browser.newBrowserContext();
|
|
38
39
|
const page = await browserContext.getPage();
|
|
39
40
|
|