Added additional time reminders for user.

This commit is contained in:
Ronald Farrer 2021-04-20 11:53:53 -07:00
parent 9b446c299c
commit adcac0da50

View file

@ -18,11 +18,14 @@ elif os.name == 'posix':
driver = webdriver.Firefox(executable_path=ff_exec_path, options=options) driver = webdriver.Firefox(executable_path=ff_exec_path, options=options)
def getcreds(): def getcreds():
print("Reading configuration.")
configuration = configparser.ConfigParser() configuration = configparser.ConfigParser()
configuration.read('sgspider.ini') configuration.read('sgspider.ini')
print("Finished reading configuration.")
return configuration return configuration
def login(credentials): def login(credentials):
print("Loading front page and initiating login")
driver.get("https://suicidegirls.com") driver.get("https://suicidegirls.com")
time.sleep(1) time.sleep(1)
driver.find_element_by_id("login").click() driver.find_element_by_id("login").click()
@ -36,11 +39,14 @@ def login(credentials):
password.send_keys(credentials['main']['password']) password.send_keys(credentials['main']['password'])
time.sleep(1) time.sleep(1)
driver.find_element_by_xpath("//button[@class = 'button call-to-action']").click() driver.find_element_by_xpath("//button[@class = 'button call-to-action']").click()
print("Login finished, but unverified")
time.sleep(1) time.sleep(1)
def getgirls(): def getgirls():
print("Loading photos page.")
#driver.get("https://suicidegirls.com/photos") #driver.get("https://suicidegirls.com/photos")
driver.get("https://www.suicidegirls.com/photos/sg/recent/all/") driver.get("https://www.suicidegirls.com/photos/sg/recent/all/")
print("Finished loading photos page.")
time.sleep(1) time.sleep(1)
print("Starting to scroll through photos page.. this will take a *REALLY* LONG time!") print("Starting to scroll through photos page.. this will take a *REALLY* LONG time!")
print("Each '.' in the progress output represents a new page that has been loaded and 'x' is a failure to load the next page.") print("Each '.' in the progress output represents a new page that has been loaded and 'x' is a failure to load the next page.")