| 1 |
# -*- coding: utf-8 -*- |
| 2 |
__license__ = 'GPL v3' |
| 3 |
__copyright__ = '2008-2012, Darko Miletic <darko.miletic at gmail.com>' |
| 4 |
''' |
| 5 |
pescanik.net |
| 6 |
''' |
| 7 |
|
| 8 |
import re |
| 9 |
|
| 10 |
from calibre.web.feeds.news import BasicNewsRecipe |
| 11 |
|
| 12 |
|
| 13 |
class Pescanik(BasicNewsRecipe): |
| 14 |
title = 'Peščanik' |
| 15 |
__author__ = 'Darko Miletic' |
| 16 |
description = 'Peščanik je udruženje građana osnovano 2006. godine. Glavni proizvod Peščanika je radio emisija koja je emitovana na Radiju B92 od 02.02.2000. do 16.06.2011, a od septembra 2011. se emituje na osam radio stanica u Srbiji, Crnoj Gori i BiH' # noqa: E501 |
| 17 |
publisher = 'Peščanik' |
| 18 |
category = 'news, politics, Serbia' |
| 19 |
oldest_article = 10 |
| 20 |
max_articles_per_feed = 100 |
| 21 |
no_stylesheets = True |
| 22 |
use_embedded_content = False |
| 23 |
encoding = 'utf-8' |
| 24 |
language = 'sr' |
| 25 |
publication_type = 'newsportal' |
| 26 |
masthead_url = 'http://pescanik.net/wp-content/uploads/2011/10/logo1.png' |
| 27 |
extra_css = ''' |
| 28 |
@font-face {font-family: "sans1";src:url(res:///opt/sony/ebook/FONT/tt0003m_.ttf)} |
| 29 |
body{font-family: Verdana,Arial,Tahoma,sans1,sans-serif} |
| 30 |
#BlogTitle{font-size: xx-large; font-weight: bold} |
| 31 |
''' |
| 32 |
|
| 33 |
conversion_options = {'comment': description, 'tags': category, 'publisher': publisher, 'language': language} |
| 34 |
|
| 35 |
preprocess_regexps = [(re.compile('\u0110'), lambda match: '\u00d0')] # noqa: RUF039 |
| 36 |
remove_tags = [dict(name=['object', 'link', 'meta', 'script', 'iframe', 'embed'])] |
| 37 |
keep_only_tags = [dict(attrs={'id': ['BlogTitle', 'BlogDate', 'BlogContent']})] |
| 38 |
feeds = [('Autori', 'http://pescanik.net/category/autori/feed/'), ('Prevodi', 'http://pescanik.net/category/prevodi/feed/')] |
| 39 |
|
| 40 |
def print_version(self, url): |
| 41 |
return url + 'print/' |