How to get href links from urllib urlopen in Python Use re.findall() Use bs4.BeautifulSoup.find_all()