mirror of
https://github.com/tenox7/wrp.git
synced 2025-01-05 19:32:28 +00:00
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
Block a user