open web using python without browser BeautifulSoup code example
Example 1: how to open a webpage with java
import java.awt.Desktop;
import java.io.IOException;
import java.net.URI;
import java.util.logging.Level;
import java.util.logging.Logger;
String url_open ="HTTPS://www.google.com";
try {
java.awt.Desktop.getDesktop().browse(java.net.URI.create(url_open));
} catch (IOException ex) {
Logger.getLogger(Test.class.getName()).log(Level.SEVERE, null, ex);
}
Example 2: how to open youtube from google chrome browser instead of internet explorerwhen coding in python
webbrowser.get('chrome').open('https://www.youtube.com')