Soup - Reading HTML Files
Closed this issue · 0 comments
s2t2 commented
Add to notes about beautiful soup package, a section about parsing a local HTML file (the current example is for live-requested files:
with open('index.html', 'r') as f:
contents = f.read()
soup = BeautifulSoup(contents, 'lxml')