This commit is contained in:
Kovid Goyal 2012-11-23 08:34:17 +05:30
parent cc1162031d
commit c73616b26c
3 changed files with 4 additions and 5 deletions

View File

@ -8,7 +8,6 @@ http://prawica.net
'''
from calibre.web.feeds.news import BasicNewsRecipe
import re
class prawica_recipe(BasicNewsRecipe):
title = u'prawica.net'
@ -38,4 +37,4 @@ class prawica_recipe(BasicNewsRecipe):
remove_tags_after =[(dict(name = 'div', attrs = {'class' : 'field-label-inline-first'}))]
def print_version(self, url):
return url.replace('http://prawica.net/', 'http://prawica.net/print/')
return url.replace('http://prawica.net/', 'http://prawica.net/print/')

View File

@ -6,6 +6,7 @@ __copyright__ = u'2012, Tomasz Dlugosz <tomek3d@gmail.com>'
rybinski.eu
'''
from calibre.web.feeds.news import BasicNewsRecipe
class Rybinski(BasicNewsRecipe):
title = u'Rybinski.eu - economy of the XXI century'
@ -15,7 +16,7 @@ class Rybinski(BasicNewsRecipe):
oldest_article = 7
max_articles_per_feed = 100
no_stylesheets = True
feeds = [(u'wpisy', u'http://www.rybinski.eu/?feed=rss2&lang=pl')]
keep_only_tags = [dict(name='div', attrs={'class':'post'})]

View File

@ -6,7 +6,6 @@ __license__ = 'GPL 3'
__copyright__ = '2012, Tomasz Długosz <tomek3d@gmail.com>'
__docformat__ = 'restructuredtext en'
import re
import urllib
from contextlib import closing
@ -66,7 +65,7 @@ class PublioStore(BasicStoreConfig, StorePlugin):
counter -= 1
s = SearchResult()
s.cover_url = 'http://www.publio.pl' + cover_url
s.cover_url = 'http://www.publio.pl' + cover_url
s.title = title.strip()
s.author = author.strip()
s.price = price.strip()