from selenium import webdriver import re import random # TODO: export path with geckodriver or chromedriver automatically and put driver in project files # TODO: automatically download geckodriver or chromedriver class Proxy(): def __init__(self, proxies=None): "docstring" self.proxies = [] if proxies is None else proxies def download(self): driver = webdriver.Chrome() driver.maximize_window() driver.get('http://www.gatherproxy.com/proxylist/anonymity/?t=elite') full_list_button = driver.find_element_by_xpath( '//input[@type="submit" and @value="Show Full List"]') full_list_button.click() print(driver.page_source) for match in re.finditer( '