I'm trying to print a title from a link, but it doesn't return any values. Can anyone see where I've gone wrong?
Link to HTML for the link I'm trying to get the title from - http://imgur.com/a/niTAs
driver.get("http://www.theflightdeal.com/category/flight-deals/boston-flight-deals/")
results = driver.find_elements_by_xpath('//div[@class="post-entry half_post half_post_odd"]')
for result in results:
main = result.find_element_by_xpath('//div[@class="entry-content"]')
title1 = main.find_element_by_xpath('//h1/a')
title = title1.get_attribute('title')
print(title)