mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-08 18:54:09 -04:00
pep8
This commit is contained in:
parent
06752c03cc
commit
46ad724b27
@ -3,7 +3,7 @@ import re
|
|||||||
from urllib.parse import quote
|
from urllib.parse import quote
|
||||||
from html5_parser import parse
|
from html5_parser import parse
|
||||||
|
|
||||||
from calibre.web.feeds.news import BasicNewsRecipe
|
from calibre.web.feeds.news import BasicNewsRecipe, classes
|
||||||
|
|
||||||
|
|
||||||
class ft(BasicNewsRecipe):
|
class ft(BasicNewsRecipe):
|
||||||
@ -100,7 +100,7 @@ class ft(BasicNewsRecipe):
|
|||||||
# with open('/t/raw.html', 'w') as f:
|
# with open('/t/raw.html', 'w') as f:
|
||||||
# f.write(raw)
|
# f.write(raw)
|
||||||
root = parse(raw)
|
root = parse(raw)
|
||||||
if x := root.xpath('//article[@id="article-body"]'):
|
if root.xpath('//article[@id="article-body"]'):
|
||||||
self.log('**has article content')
|
self.log('**has article content')
|
||||||
return raw
|
return raw
|
||||||
self.log('**no article content')
|
self.log('**no article content')
|
||||||
|
Loading…
x
Reference in New Issue
Block a user