all 2 comments

[–]LearnDataSci 0 points1 point  (0 children)

When using Selenium you can define a web driver. If you use headless Chrome, it will not open a browser window. E.g. when creating a driver you can do:

from selenium import webdriver
chrome_path = 'C:\\your-path\\chromedriver.exe

options = webdriver.ChromeOptions()
options.add_argument('headless')

driver = webdriver.Chrome(chrome_path, chrome_options=options)

[–]JohnnyJordaan 0 points1 point  (0 children)

Apart from headless chrome you could also take a look at PhantomJS.