Skip to content
Sign upLog in
← Back to Community

How do I open a website in Python?

Profile icon
Human9

I'm trying to make a bot where you can type in a website URL and the bot will open that website. But how do I go to a website? All the tutorials I've tried don't work.

Answered by SixBeeps [earned 5 cycles]
View Answer
Voters
Profile icon
Tsuraran
Profile icon
Human9
Comments
hotnewtop
Profile icon
SixBeeps

Because repl.it runs on a VM and there's no GUI, there's no possible way for you to do it unless you run the code on your own computer.

Profile icon
Geocube101

You can open it and retrieve the page source code with BeautifulSoup and requests, but if you want a search engine (like when using selenium) then that must be done on your computer

Profile icon
[deleted]

What language are using using to create the bot? Have you a repl of the bot code that you can share?

Profile icon
Human9

@malvoliothegood
I'm using Python for the bot. I don't have a repl of the bot's code. I'm just trying to see if opening a website is even possible on repl.