import urllib2 website = \"WEBSITE\" openwebsite = urllib2.urlopen(website) html = getwebsite.read() print html
So far so good.
But I wa
Using requests with BeautifulSoup and Python 3:
import requests from bs4 import BeautifulSoup page = requests.get('http://www.website.com') bs = BeautifulSoup(page.content, features='lxml') for link in bs.findAll('a'): print(link.get('href'))