From 9f606b793600642d2333bbe200c1b907a4319e12 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20Ra=C4=8D=C3=A1k?= Date: Mon, 11 Apr 2016 15:55:44 +0200 Subject: [PATCH] Update tyzden --- recipes/tyzden.recipe | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/recipes/tyzden.recipe b/recipes/tyzden.recipe index f45bb79567..0eca273b9f 100644 --- a/recipes/tyzden.recipe +++ b/recipes/tyzden.recipe @@ -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 -