Skip to content

Instantly share code, notes, and snippets.

@vaishaks
Last active August 29, 2015 14:13
Show Gist options
  • Save vaishaks/c09dbb7959cfb29fd58a to your computer and use it in GitHub Desktop.
Save vaishaks/c09dbb7959cfb29fd58a to your computer and use it in GitHub Desktop.
htmldata = ''
with open(filename+'.html', 'r') as htmlfile:
htmldata = htmldata + htmlfile.read()
soup = BeautifulSoup(htmldata, 'html.parser')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment