mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-08 18:54:09 -04:00
Update tyzden
Merge branch 'master' of https://github.com/rakyi/calibre
This commit is contained in:
commit
fd90645306
@ -46,11 +46,20 @@ class Tyzden(BasicNewsRecipe):
|
||||
dict(name='div', attrs={'class': 'detail__title article__title'}),
|
||||
dict(name='div', attrs={'class': 'article'}),
|
||||
]
|
||||
extra_css = """.detail__content h2::before {
|
||||
color: #000;
|
||||
content: ".";
|
||||
display: inline;
|
||||
}
|
||||
|
||||
.highlight {
|
||||
color: #bf1f10;
|
||||
}"""
|
||||
|
||||
def get_browser(self):
|
||||
br = BasicNewsRecipe.get_browser(self)
|
||||
br.open(self.base_url + '/' + self.piano_param)
|
||||
br.set_cookie('pianovisitkey=""')
|
||||
br.set_cookie('pianovisitkey', '', '.tyzden.sk')
|
||||
if self.username is not None and self.password is not None:
|
||||
br.select_form(nr=2)
|
||||
br['username'] = self.username
|
||||
@ -81,4 +90,3 @@ class Tyzden(BasicNewsRecipe):
|
||||
for title, section in self.find_sections():
|
||||
feeds.append((title, list(self.find_articles(section))))
|
||||
return feeds
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user