mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
gsp.ro by bucsie
This commit is contained in:
parent
2041ae63ed
commit
ed83d5e4a5
20
resources/recipes/gsp.recipe
Normal file
20
resources/recipes/gsp.recipe
Normal file
@ -0,0 +1,20 @@
|
||||
from calibre.web.feeds.news import BasicNewsRecipe
|
||||
|
||||
class AdvancedUserRecipe1286351181(BasicNewsRecipe):
|
||||
title = u'gsp.ro'
|
||||
__author__ = 'bucsie'
|
||||
oldest_article = 2
|
||||
max_articles_per_feed = 100
|
||||
language='ro'
|
||||
cover_url ='http://www.gsp.ro/images/sigla_rosu.jpg'
|
||||
|
||||
remove_tags = [
|
||||
dict(name='div', attrs={'class':['related_articles', 'articol_noteaza straight_line dotted_line_top', 'comentarii','mai_multe_articole']}),
|
||||
dict(name='div', attrs={'id':'icons'})
|
||||
]
|
||||
remove_tags_after = dict(name='div', attrs={'id':'adoceanintactrovccmgpmnyt'})
|
||||
|
||||
feeds = [(u'toate stirile', u'http://www.gsp.ro/index.php?section=section&screen=rss')]
|
||||
|
||||
def print_version(self, url):
|
||||
return 'http://www1.gsp.ro/print/' + url[(url.rindex('/')+1):]
|
Loading…
x
Reference in New Issue
Block a user