From fba3f789bb2bfc46ea8741aca5fcebe838eb8c50 Mon Sep 17 00:00:00 2001 From: OneNewDev Date: Sat, 28 May 2022 15:16:34 +0200 Subject: [PATCH] don't include links anymore --- tagger.py | 8 -------- 1 file changed, 8 deletions(-) diff --git a/tagger.py b/tagger.py index 3868e44..b478680 100644 --- a/tagger.py +++ b/tagger.py @@ -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)