Skip to content

Commit

Permalink
add some anti crawler detection
Browse files Browse the repository at this point in the history
  • Loading branch information
tenox7 committed Jan 3, 2024
1 parent 43df501 commit 7d9cec6
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions wrp.go
Expand Up @@ -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))
Expand Down

0 comments on commit 7d9cec6

Please sign in to comment.