Im new to python and programming and wanted to make a simple program that opens a webpage after its execution, how can it be made?
CodePudding user response:
Yes, the most common way to do this is with selenium and a webdriver manager. If you don't need to open the whole webpage and just need the HTML, use beautifulsoup4 and requests.
CodePudding user response:
Depends on what you mean with make python open a webpage. You can either call your default browser to open the URL with something like the following:
firefox.exe <url>
Or you can create an application using QT to show the webpage in "plain" Python: https://pythonspot.com/pyqt5-webkit-browser/
If you need to interact with the page through your program, see the links in the answer mentioning selenium.