Simply add a
to your CSS selector passed to the soup.select()
method:
out = browser.select('span.select a')
Alternatively, navigate to the first matching child tag by addressing it by tagname as an attribute:
out = browser.select('span.select')
links = [span.a for span in out]