antibotbrowser 1.0.7 → 1.0.9
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/index.js +3 -10
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -22,10 +22,7 @@ async function startbrowser_hide(port) {
|
|
|
22
22
|
return new Promise(async(resolve, reject) => {
|
|
23
23
|
|
|
24
24
|
try {
|
|
25
|
-
|
|
26
|
-
console.log(port);
|
|
27
25
|
|
|
28
|
-
|
|
29
26
|
execFile(chromium.path, ['--remote-debugging-port=' + port, '--headless', '--no-sandbox'], (err) => {
|
|
30
27
|
if (err) { }
|
|
31
28
|
});
|
|
@@ -34,8 +31,7 @@ async function startbrowser_hide(port) {
|
|
|
34
31
|
veri = await JSON.parse(res.getBody())
|
|
35
32
|
useragent = await veri["User-Agent"];
|
|
36
33
|
websokcet = await veri["webSocketDebuggerUrl"];
|
|
37
|
-
|
|
38
|
-
|
|
34
|
+
|
|
39
35
|
resolve( { useragent, websokcet } )
|
|
40
36
|
|
|
41
37
|
} catch (error) {
|
|
@@ -51,9 +47,6 @@ async function startbrowser(port) {
|
|
|
51
47
|
|
|
52
48
|
try {
|
|
53
49
|
|
|
54
|
-
console.log(port);
|
|
55
|
-
|
|
56
|
-
|
|
57
50
|
execFile(chromium.path, ['--remote-debugging-port=' + port], (err) => {
|
|
58
51
|
if (err) { }
|
|
59
52
|
});
|
|
@@ -62,10 +55,10 @@ async function startbrowser(port) {
|
|
|
62
55
|
veri = await JSON.parse(res.getBody())
|
|
63
56
|
useragent = await veri["User-Agent"];
|
|
64
57
|
websokcet = await veri["webSocketDebuggerUrl"];
|
|
65
|
-
console.log(websokcet);
|
|
66
58
|
|
|
67
59
|
resolve( { useragent, websokcet } )
|
|
68
|
-
|
|
60
|
+
|
|
61
|
+
|
|
69
62
|
} catch (error) {
|
|
70
63
|
startbrowser(port);
|
|
71
64
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "antibotbrowser",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.9",
|
|
4
4
|
"readme": "README.md",
|
|
5
5
|
"description": "Opening Chromium opens a real browser without bot validations in automated systems like Puppetter. To avoid problems in places like Cloudflare",
|
|
6
6
|
"main": "index.js",
|