Skip to content

Commit f586e1d

Browse files
committed
Updated BeautifulSoup call to parse HTML specifically
1 parent d278a06 commit f586e1d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

screenshotClustering/cluster.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ def createWordBags(htmlList):
5353
for f in htmlList:
5454
htmlContent = open(f,'r').read()
5555
wordBags[f]={}
56-
soup = BeautifulSoup(htmlContent)
56+
soup = BeautifulSoup(htmlContent, 'html.parser')
5757
addAttrToBag('name',f,False,wordBags,soup)
5858
addAttrToBag('href',f,True,wordBags,soup)
5959
addAttrToBag('src',f,True,wordBags,soup)

0 commit comments

Comments
 (0)