Comments (14)
你不需要 stealth
package main
import (
"github.com/go-rod/rod"
"github.com/go-rod/rod/lib/launcher"
"github.com/go-rod/rod/lib/utils"
)
func main() {
u := launcher.NewUserMode().
Leakless(true).
UserDataDir("tmp/t").
Set("disable-default-apps").
Set("no-first-run").
MustLaunch()
rod.New().ControlURL(u).MustConnect().NoDefaultDevice().MustPage("https://lib.cqvip.com/")
utils.Pause()
}
from stealth.
newusermode也同样无法绕过检测
package main
import (
"crypto/md5"
"fmt"
"github.com/go-rod/rod/lib/launcher"
"time"
"github.com/go-rod/rod"
"github.com/go-rod/stealth"
)
func main() {
path, _ := launcher.LookPath()
url := launcher.NewUserMode().Bin(path).Headless(false).MustLaunch()
browser := rod.New().
ControlURL(url).Timeout(time.Minute).MustConnect()
defer browser.MustClose()
// You can also use stealth.JS directly without rod
fmt.Printf("js: %x\n\n", md5.Sum([]byte(stealth.JS)))
//page := stealth.MustPage(browser)
page := browser.MustPage()
page.MustNavigate("https://lib.cqvip.com/")
time.Sleep(10 * time.Minute)
}
from stealth.
感谢您的回复,在有头模式下没有问题,但在无头模式下还是会卡住,请问如果想要在无头模式下不卡白屏,应该如何操作呢,谢谢
from stealth.
Related Issues (20)
- WebDriver present with a remote launcher HOT 1
- Rename bypass to stealth
- canvas & ja3 HOT 1
- Hide fingerprint and prevent bot detection HOT 4
- Got error when using npx
- How to use stealth? HOT 6
- import stealth shows checksum mismatch error HOT 2
- I guess stealth.min.js is detectable using the Default Device, wondering if we could change webgl, etc, through the API HOT 2
- Browser Being Bot Detected HOT 5
- Questions: Cloudflare Waiting Room HOT 7
- Headless(false) using stealth HOT 3
- Cloudflare detection false HOT 1
- Emulate CPU/ GPU + more.
- Can't bypass Login With Google HOT 6
- stealth can not bypass cloudflare bot detection HOT 1
- Add some doc in the readme to explain how this repo works HOT 2
- Compress the js HOT 1
- Tip: extract-stealth-evasions
- Can you add multi parameter to page.EvalOnNewDocument(JS) HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from stealth.