I want to access websites including their ads with Selenium in my brave browser. But Brave has a built in adblocker (Brave Shields), which prevent Selenium from seeing ads. How can I start brave without Brave Shields? Is there some options-argument, that I can pass to selenium, like options.add_argument("--no-adblock")?
Asked
Active
Viewed 422 times
1 Answers
0
I know it's late to add an answer but it might help someone in the future. This worked for me, hope it works for anyone out there.
options = webdriver.ChromeOptions()
options.binary_location = 'path to brave browser binary'
options.add_argument('--disable-brave-extension') # this will disable brave browser shields
driver = webdriver.Chrome(options=options, executable_path=ChromeDriverManager().install())

Daniel Afriyie
- 217
- 4
- 12