Skip to content

Instantly share code, notes, and snippets.

@russelllim22
Created August 25, 2021 11:07
Show Gist options
  • Save russelllim22/fb2f6020d9c864d60d567e900aba3f99 to your computer and use it in GitHub Desktop.
Save russelllim22/fb2f6020d9c864d60d567e900aba3f99 to your computer and use it in GitHub Desktop.
from bs4 import BeautifulSoup
with open("math-topic-page.html", encoding='utf-8') as f:
contents = f.read()
soup = BeautifulSoup(contents, 'lxml')
for sect in soup.find_all('section'):
...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment