I'm very new to python, so there could be multiple things wrong with my code. But I can't debug because I literally get no output, including no error. Would love some help. I'm in python 3.5. Cheers!
print('starting')
def simple_function(comic_start, comic_end):
for urlNumber in range(comic_start, comic_end):
print('Downloading page http://xkcd.com/%s...' % (urlNumber))
driver = selenium.webdriver.PhantomJS()
driver.get('http://xkcd.com/%s' % (urlNumber))
print('finding page')
form= driver.title
print(driver.title)
driver.quit()
with concurrent.futures.ThreadPoolExecutor(max_workers=10) as executor:
executor.map(simple_function, (1, 100))
Output:
runfile('/Users/Seansmac/Desktop/Python/my_classroom/threading_training/concurrent.f1.py', wdir='/Users/Seansmac/Desktop/Python')
starting
EDIT: This is a similar Q to this, Concurrent.futures usage guide - a simple example of using both threading and processing, but like the OP said, the answer there is too complicated!