diff --git a/recipes/fokus.recipe b/recipes/fokus.recipe index b97dc5b07b..128ce32e3c 100644 --- a/recipes/fokus.recipe +++ b/recipes/fokus.recipe @@ -1,7 +1,6 @@ #!/usr/bin/env python # vim:fileencoding=utf-8 import re - from datetime import datetime, timezone from mechanize import Request @@ -321,7 +320,7 @@ class Fokus(BasicNewsRecipe): return feeds - def postprocess_html(self, soup, _, read_more_regex: re.Pattern = re.compile("^Läs även:")): + def postprocess_html(self, soup, _, read_more_regex: re.Pattern = re.compile(r'^Läs även:')): # When scraped, Fokus sometimes returns a duplicate of the article, i.e., the exact same article concatenated # to itself. To avoid duplication in the output file, remove all
tags after the

tag whose content is # "***" (the Fokus indication of the end of the article). "***" is sometimes followed by one or multiple