I\'m looking to write a Python script (using 3.4.3) that grabs a HTML page from a URL and can go through the DOM to try to find a specific element.
I currently have
Check out the BeautifulSoup module.
from bs4 import BeautifulSoup import urllib soup = BeautifulSoup(urllib.urlopen("http://google.com").read()) for link in soup.find_all('a'): print(link.get('href'))