Skip to content
← Back to Community
Selenium is not working
Profile icon
JheroJhero

Hello Guys,

I'am very new to Python and want to try this https://youtu.be/f7LEWxX4AVI?t=328 at 5.28 I saw that you can open Youtube trough python - selenium and try this but it does not work for me. I can not found a Chrome webdriver and have searched a lot but it's not working. Can you guys give me some direction/guidance?

Thanks in advance

Voters
Profile icon
JacobLuder2024
Profile icon
luizinho09
Comments
hotnewtop
Profile icon
Coder100

Hello, I have not used selenium before, but I have used webbot which is basically the same as selenium:
Click here to create a pygame repl. We are using a pygame repl because repl.it has put in a display there for us.

Then, you can code freely with webbot! Here's an example:

from webbot import Browser web = Browser() web.go_to('google.com')

Docs here

Hope this helps!

Profile icon
JheroJhero

@Coder100 Nice! I'm gonna give it a try! Sorry for responding so late but didn't see your reaction.

Profile icon
Coder100

Hello! Good luck! @JheroJhero

Profile icon
MocaCDeveloper

Yeah, I had the same problem as well. I think it's because repl is hosting a virtual environment instead of a local one therefore it cannot access the actual web browser your local machine supports
Idk, but yeah, if you're wanting to do anything with that type of module plan on getting an IDE because as of what it looks like, repl cannot support that type of Python library.

Profile icon
JheroJhero

@targetfanttthat Oh.... hope that there's some workaround because i have a ide and installed pip and selenium but there's it's not working because I get this message ModuleNotFoundError: No module named 'selenium' and I have watched video's on Youtube for more then 3-4 hours with out finding a solution that works for me. Thank you for your reply.

Profile icon
MocaCDeveloper

@JheroJhero What IDE are you using?

Profile icon
JheroJhero
Profile icon
MocaCDeveloper

@JheroJhero what OS do you operate on?

Profile icon
JheroJhero
Profile icon
MocaCDeveloper

@JheroJhero Very strange. Yeah Idk why it won't work then..

Profile icon
JheroJhero

Np thank you for replying
@targetfanttthat

Profile icon
SixBeeps

@JheroJhero Did you pip install selenium?

Profile icon
JheroJhero

Yes I do @SixBeeps

Profile icon
SixBeeps

@JheroJhero And it still says the module can't be found?

Profile icon
JheroJhero

Yes it say the module can't be found and If i run the command if Selenium is installed it says that selenium is installed, because I have tried to install it again, maybe I must uninstall it? @SixBeeps

Profile icon
SixBeeps

@JheroJhero Ok, maybe try running pip3 install selenium instead?

Profile icon
JheroJhero

Already tried that, also tried with [email protected]

Profile icon
MocaCDeveloper

@SixBeeps oh, yes! If you weren't using pip3(made for python3) that could very much be the issue.

Profile icon
MocaCDeveloper

@JheroJhero Sorry, my repl is messing up. It only shows one comment and the rest don't load. But pip3 should've worked...

Profile icon
JheroJhero

If this is the problem
do you know where I can find a solution? @targetfanttthat

Profile icon
MocaCDeveloper

@JheroJhero
Here is some things I found:
This supports python versions 2.7 and 3.4(I don't know what version of Python you have installed): https://pypi.org/project/selenium/
Here is a video I found for installing it on Windows 10: https://youtu.be/gVXcVcTRXd0
Also, it depends on what browser you have.
Selenium only supports: Chrome, Firefox, Edge and Safari.