Selenium might be overkill for what you need, good old BeautifulSoup will do the trick as well.
import urllib.request, bs4
body = urllib.request.urlopen(urllib.request.Request("http://www.allitebooks.com/page/1/?s=python", headers={"User-Agent": "Mozilla"})).read().decode("utf-8")
soup = bs4.BeautifulSoup(body)
for element in soup.find_all("h2", class_="entry-title"):
for link in element.find_all("a"):
print(link.get("href"))