don't include links anymore

This commit is contained in:
OneNewDev 2022-05-28 15:16:34 +02:00
parent 43ff74265c
commit fba3f789bb

View file

@ -56,14 +56,6 @@ class FileScanner(HTMLParser):
words_with_usage[word].score += score
return sorted(words_with_usage.values(), key=lambda tag: tag.score, reverse=True)
def handle_starttag(self, tag, attrs):
if tag != "a":
return
for attr_name, attr_value in attrs:
if attr_name == "href":
self.texte.append(attr_value)
break
def handle_data(self, data):
self.texte.append(data)