Aug-28-2017, 01:21 AM
You might as well just use selenium. It also gives you the option of already having that site open for selenium to get the source, and/or execute actions such as mouse clicks, etc.
import time from selenium import webdriver URLS = ("https://www.google.com", "http://www.yahoo.com", "http://www.bing.com") PATH_TO_DRIVER = '/home/metulburr/chromedriver' browser = webdriver.Chrome(PATH_TO_DRIVER) browser.set_window_position(0,0) for url in URLS: browser.get(url) time.sleep(5)[Image: pmMgW2I.gif]
Recommended Tutorials: