mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Siol.net by BlonG
This commit is contained in:
parent
195181219c
commit
7f932f562c
BIN
resources/images/news/siol.png
Normal file
BIN
resources/images/news/siol.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 423 B |
55
resources/recipes/siol.recipe
Normal file
55
resources/recipes/siol.recipe
Normal file
@ -0,0 +1,55 @@
|
||||
# coding: utf-8
|
||||
__license__ = 'GPL v3'
|
||||
__copyright__ = '2010, BlonG'
|
||||
'''
|
||||
www.siol.si
|
||||
'''
|
||||
from calibre.web.feeds.news import BasicNewsRecipe
|
||||
|
||||
class Siol(BasicNewsRecipe):
|
||||
title = u'Siol.net'
|
||||
__author__ = u'BlonG'
|
||||
description = "Multimedijski portal z aktualnimi vsebinami, intervjuji, komentarji iz Slovenije in sveta, sportal, trendi, avtomoto, blogos"
|
||||
oldest_article = 3
|
||||
max_articles_per_feed = 20
|
||||
no_stylesheets = True
|
||||
use_embedded_content = False
|
||||
language = 'sl'
|
||||
|
||||
cover_url = 'http://farm4.static.flickr.com/3540/3401820496_c771550fe6.jpg'
|
||||
|
||||
extra_css = '''
|
||||
h1{font-family:Arial,Helvetica,sans-serif; font-weight:bold;font-size:large;}
|
||||
h2{font-family:Arial,Helvetica,sans-serif; font-weight:bold;font-size:large;}
|
||||
p{font-family:Arial,Helvetica,sans-serif;font-size:small;}
|
||||
body{font-family:Helvetica,Arial,sans-serif;font-size:small;}
|
||||
'''
|
||||
|
||||
keep_only_tags = [
|
||||
dict(name='div', attrs={'id':'idContent'}),
|
||||
]
|
||||
|
||||
remove_tags = [
|
||||
dict(name='span', attrs={'class':'com1'}),
|
||||
dict(name='div', attrs={'class':'relation'}),
|
||||
dict(name='p', attrs={'class':'path'}),
|
||||
dict(name='div', attrs={'class':'clear_r'}),
|
||||
dict(name='div', attrs={'id':'appendix'}),
|
||||
dict(name='div', attrs={'id':'rail'}),
|
||||
dict(name='div', attrs={'id':'div_comments'}),
|
||||
dict(name='div', attrs={'class':'thumbs'}),
|
||||
]
|
||||
|
||||
feeds = [
|
||||
(u'Slovenija', u'http://www.siol.net/rss.aspx?path=Slovenija')
|
||||
,(u'Lokalne novice', u'http://www.siol.net/rss.aspx?path=Slovenija/Lokalne_novice')
|
||||
,(u'EU', u'http://www.siol.net/rss.aspx?path=EU')
|
||||
,(u'Svet', u'http://www.siol.net/rss.aspx?path=Svet')
|
||||
,(u'Gospodarstvo', u'http://www.siol.net/rss.aspx?path=Gospodarstvo')
|
||||
,(u'Sportal', u'http://www.siol.net/rss.aspx?path=Sportal')
|
||||
,(u'Trendi', u'http://www.siol.net/rss.aspx?path=Trendi')
|
||||
,(u'Avtomoto', u'http://www.siol.net/rss.aspx?path=Avtomoto')
|
||||
,(u'Tehnologija', u'http://www.siol.net/rss.aspx?path=Tehnologija')
|
||||
,(u'TV / Film', u'http://www.siol.net/rss.aspx?path=TV')
|
||||
]
|
||||
|
Loading…
x
Reference in New Issue
Block a user