| 1 |
__license__ = 'GPL v3' |
| 2 |
__copyright__ = '2010, Darko Miletic <darko.miletic at gmail.com>' |
| 3 |
''' |
| 4 |
cultofghoul.blogspot.com |
| 5 |
''' |
| 6 |
|
| 7 |
import re |
| 8 |
|
| 9 |
from calibre.web.feeds.news import BasicNewsRecipe |
| 10 |
|
| 11 |
|
| 12 |
class TheCultOfGhoul(BasicNewsRecipe): |
| 13 |
title = 'The Cult of Ghoul' |
| 14 |
__author__ = 'Darko Miletic' |
| 15 |
description = 'Filmski blog' |
| 16 |
oldest_article = 7 |
| 17 |
max_articles_per_feed = 100 |
| 18 |
language = 'sr' |
| 19 |
encoding = 'utf-8' |
| 20 |
no_stylesheets = True |
| 21 |
use_embedded_content = True |
| 22 |
publication_type = 'blog' |
| 23 |
extra_css = ' @font-face {font-family: "serif1";src:url(res:///opt/sony/ebook/FONT/tt0011m_.ttf)} @font-face {font-family: "sans1";src:url(res:///opt/sony/ebook/FONT/tt0003m_.ttf)} body{font-family: "Trebuchet MS",Trebuchet,Verdana,sans1,sans-serif} .article_description{font-family: sans1, sans-serif} img{margin-bottom: 0.8em; border: 1px solid #333333; padding: 4px } ' # noqa: E501 |
| 24 |
|
| 25 |
conversion_options = {'comment': description, 'tags': 'film, blog, srbija, strava, uzas', 'publisher': 'Dejan Ognjanovic', 'language': language} |
| 26 |
|
| 27 |
preprocess_regexps = [(re.compile('\u0110'), lambda match: '\u00d0')] # noqa: RUF039 |
| 28 |
|
| 29 |
feeds = [('Posts', 'http://cultofghoul.blogspot.com/feeds/posts/default')] |
| 30 |
|
| 31 |
def preprocess_html(self, soup): |
| 32 |
for item in soup.findAll(style=True): |
| 33 |
del item['style'] |
| 34 |
return self.adeify_images(soup) |