| 1 |
__license__ = 'GPL v3' |
| 2 |
__copyright__ = '2010, BlonG' |
| 3 |
''' |
| 4 |
avto-magazin.si |
| 5 |
''' |
| 6 |
from calibre.web.feeds.news import BasicNewsRecipe |
| 7 |
|
| 8 |
|
| 9 |
class Dnevnik(BasicNewsRecipe): |
| 10 |
title = 'Avto Magazin' |
| 11 |
__author__ = 'BlonG' |
| 12 |
description = 'Za avtomobilisti\xc4\x8dne frike, poznavalce in nedeljske \xc5\xa1oferje.' |
| 13 |
oldest_article = 7 |
| 14 |
max_articles_per_feed = 20 |
| 15 |
labguage = 'sl' |
| 16 |
no_stylesheets = True |
| 17 |
use_embedded_content = False |
| 18 |
language = 'sl' |
| 19 |
|
| 20 |
conversion_options = {'linearize_tables': True} |
| 21 |
|
| 22 |
cover_url = 'https://sites.google.com/site/javno2010/home/avto_magazin_cover.jpg' |
| 23 |
|
| 24 |
extra_css = ''' |
| 25 |
h1{font-family:Arial,Helvetica,sans-serif; font-weight:bold;font-size:large;} |
| 26 |
h2{font-family:Arial,Helvetica,sans-serif; font-weight:bold;font-size:large;} |
| 27 |
p{font-family:Arial,Helvetica,sans-serif;font-size:small;} |
| 28 |
body{font-family:Helvetica,Arial,sans-serif;font-size:small;} |
| 29 |
''' |
| 30 |
|
| 31 |
keep_only_tags = [ |
| 32 |
dict(name='div', attrs={'id': '_iprom_inStream'}), |
| 33 |
# dict(name='div', attrs={'class':'entry-content'}), |
| 34 |
] |
| 35 |
|
| 36 |
remove_tags = [ |
| 37 |
dict(name='div', attrs={'id': 'voteConfirmation'}), |
| 38 |
dict(name='div', attrs={'id': 'InsideVote'}), |
| 39 |
dict(name='div', attrs={'class': 'Zone234'}), |
| 40 |
dict(name='div', attrs={'class': 'Comments'}), |
| 41 |
dict(name='div', attrs={'class': 'sorodneNovice'}), |
| 42 |
dict(name='div', attrs={'id': 'footer'}), |
| 43 |
] |
| 44 |
|
| 45 |
feeds = [('Novice', 'http://www.avto-magazin.si/rss/')] |