mirror of https://github.com/tenox7/wrp.git
add some anti crawler detection
This commit is contained in:
parent
43df501d97
commit
7d9cec6297
2
wrp.go
2
wrp.go
|
@ -563,6 +563,8 @@ func main() {
|
|||
opts := append(chromedp.DefaultExecAllocatorOptions[:],
|
||||
chromedp.Flag("headless", *headless),
|
||||
chromedp.Flag("hide-scrollbars", false),
|
||||
chromedp.Flag("enable-automation", false),
|
||||
chromedp.Flag("disable-blink-features", "AutomationControlled"),
|
||||
)
|
||||
if *userAgent != "" {
|
||||
opts = append(opts, chromedp.UserAgent(*userAgent))
|
||||
|
|
Loading…
Reference in New Issue