mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
pep8
This commit is contained in:
parent
a7285b7c88
commit
b75ad343fb
@ -1,7 +1,6 @@
|
|||||||
#!/usr/bin/env python
|
#!/usr/bin/env python
|
||||||
# vim:fileencoding=utf-8
|
# vim:fileencoding=utf-8
|
||||||
import re
|
import re
|
||||||
|
|
||||||
from datetime import datetime, timezone
|
from datetime import datetime, timezone
|
||||||
|
|
||||||
from mechanize import Request
|
from mechanize import Request
|
||||||
@ -321,7 +320,7 @@ class Fokus(BasicNewsRecipe):
|
|||||||
|
|
||||||
return feeds
|
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
|
# 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 <div> tags after the <p> tag whose content is
|
# to itself. To avoid duplication in the output file, remove all <div> tags after the <p> tag whose content is
|
||||||
# "***" (the Fokus indication of the end of the article). "***" is sometimes followed by one or multiple
|
# "***" (the Fokus indication of the end of the article). "***" is sometimes followed by one or multiple
|
||||||
|
Loading…
x
Reference in New Issue
Block a user