-
-
Save anonymous/d131268c9b24f9f1493d to your computer and use it in GitHub Desktop.
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
>>> table = html.find('.//table') | |
>>> i = iter(td.text for td in table.findall('.//td')[1:]) | |
>>> data = dict(zip(i, i)) | |
>>> data | |
{'Bottling Name': 'Non-Chillfiltered', 'Bottler': ' Official Bottling', 'Brand Name': 'Arran', 'Alcohol By Volume': '46%', 'Issued': None, 'Distillery': 'Arran', 'Average Score': '71', 'Type': 'Scotch Single Malts (Disclosed Distilleries)'} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment