Created
June 2, 2012 02:28
-
-
Save itdaniher/2856235 to your computer and use it in GitHub Desktop.
scrape atomic weight information from IUPAC
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import urllib | |
from bs4 import BeautifulSoup | |
soup = BeautifulSoup(urllib.urlopen("http://www.chem.qmul.ac.uk/iupac/AtWt/index.html").read()) | |
t = soup.findAll("table")[2] | |
print [ [item.text for item in row.findAll("td")] for row in t.findAll("tr") ] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment