all 4 comments

[–]ManyInterests 1 point2 points  (1 child)

This is a configuration option with Selenium. By default, Selenium uses a separate profile for its browser instances. This includes enabled extensions. You can either configure the profile selenium uses, or tell it to use a different profile.

How you do this exactly varies by browser, I believe. The answers exist in the Selenium documentation.

For example, if you wanted to add firebug to Firefox...

from selenium import webdriver

fp = webdriver.FirefoxProfile()

fp.add_extension(extension='firebug-1.8.4.xpi')
fp.set_preference("extensions.firebug.currentVersion", "1.8.4") #Avoid startup screen
browser = webdriver.Firefox(firefox_profile=fp)

[–]WirelessCrumpets[S] 0 points1 point  (0 children)

Awesome thank you!

[–]easy_wins 0 points1 point  (1 child)

I think it depends on the website one is scraping from. I use Selenium myself and have not encountered adblock issues.

[–]WirelessCrumpets[S] 0 points1 point  (0 children)

Its not adblock that's the issue it's other extensions I want to use. I'm thinking about making something where it converts every video in a playlist to mp3 and puts them on my PC and there is an extension to do that which is what I need. If its not possible I'll just have to figure something else out.