mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-08 18:54:09 -04:00
Merge branch 'master' of https://github.com/t3d/calibre
This commit is contained in:
commit
92498c884b
@ -1,23 +0,0 @@
|
||||
# vim:fileencoding=UTF-8
|
||||
from __future__ import unicode_literals
|
||||
from calibre.web.feeds.news import BasicNewsRecipe
|
||||
|
||||
|
||||
class BasicUserRecipe1395137685(BasicNewsRecipe):
|
||||
title = u'Applefobia'
|
||||
__author__ = 'koliberek'
|
||||
oldest_article = 7
|
||||
max_articles_per_feed = 100
|
||||
auto_cleanup = True
|
||||
language = 'pl'
|
||||
remove_empty_feeds = True
|
||||
remove_javascript = True
|
||||
conversion_options = {
|
||||
'tags': u'newsy, Apple, humor',
|
||||
'smarten_punctuation': True,
|
||||
'authors': 'Ogrodnik January',
|
||||
'publisher': 'Blogspot.pl'
|
||||
}
|
||||
reverse_article_order = True
|
||||
|
||||
feeds = [(u'Aktualne', u'http://applefobia.blogspot.com/feeds/posts/default')]
|
@ -1,29 +0,0 @@
|
||||
# vim:fileencoding=UTF-8:ts=4:sw=4:sta:et:sts=4:ai
|
||||
|
||||
from calibre.web.feeds.news import BasicNewsRecipe
|
||||
|
||||
|
||||
class eMuzyka(BasicNewsRecipe):
|
||||
title = u'eMuzyka'
|
||||
__author__ = 'fenuks'
|
||||
description = u'Emuzyka to największa i najpopularniejsza strona o muzyce w Polsce'
|
||||
category = 'music'
|
||||
language = 'pl'
|
||||
index = 'http://www.emuzyka.pl'
|
||||
cover_url = 'http://s.emuzyka.pl/img/emuzyka_invert_small.jpg'
|
||||
no_stylesheets = True
|
||||
oldest_article = 7
|
||||
remove_empty_feeds = True
|
||||
max_articles_per_feed = 100
|
||||
remove_attributes = ['style']
|
||||
keep_only_tags = [dict(name='div', attrs={'id': 'news_container'}), dict(
|
||||
name='h3'), dict(name='div', attrs={'class': 'review_text'})]
|
||||
remove_tags = [dict(name='span', attrs={'id': 'date'})]
|
||||
feeds = [(u'Aktualno\u015bci', u'http://www.emuzyka.pl/rss.php?f=1'),
|
||||
(u'Recenzje', u'http://www.emuzyka.pl/rss.php?f=2')]
|
||||
|
||||
def preprocess_html(self, soup):
|
||||
for a in soup('a'):
|
||||
if a.has_key('href') and 'http://' not in a['href'] and 'https://' not in a['href']: # noqa
|
||||
a['href'] = self.index + a['href']
|
||||
return soup
|
Binary file not shown.
Before Width: | Height: | Size: 312 B |
Binary file not shown.
Before Width: | Height: | Size: 478 B |
@ -1,36 +0,0 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
from calibre.web.feeds.news import BasicNewsRecipe
|
||||
import re
|
||||
|
||||
__license__ = 'GPL v3'
|
||||
|
||||
|
||||
class SeventhGuard(BasicNewsRecipe):
|
||||
title = '7th Guard'
|
||||
description = u""" 7thGuard.net jest jednym z najstarszych w polskiej części internetu serwisem poświęconym otwartości standardów,
|
||||
wolności oprogramowania, szeroko pojętych wolności w internecie, walce z praktykami monopolistycznymi w świecie informatyki oraz
|
||||
– co jest coraz ważniejsze w dzisiejszym świecie – rozwojowi społeczeństwa informacyjnego."""
|
||||
__author__ = 'koliberek'
|
||||
masthead_url = 'http://beta.7thguard.net/wp-content/uploads/2013/05/7thguard-bladerunner-logo1.png'
|
||||
cover_url = 'http://beta.7thguard.net/wp-content/uploads/2013/05/7thguard-bladerunner-logo1.png'
|
||||
language = 'pl'
|
||||
oldest_article = 7
|
||||
max_articles_per_feed = 100
|
||||
timefmt = ' [%A, %d %B %Y]'
|
||||
auto_cleanup = True
|
||||
remove_javascript = True
|
||||
no_stylesheets = True
|
||||
remove_empty_feeds = True
|
||||
conversion_options = {'smarten_punctuation': True}
|
||||
extra_css = """h2 {font-size:12pt; font-family:Arial,Helvetica,sans serif;}
|
||||
h1 {font-size:14pt; font-family:Arial,Helvetica,sans serif;}
|
||||
p {text-align:justify;}
|
||||
.article, .feed, .calibre_feed_description, .article_description {font-family:Arial,Helvetica,sans serif;}
|
||||
.article_description {text-style:italic;}
|
||||
"""
|
||||
remove_attributes = ['border', 'cellspacing', 'align', 'cellpadding',
|
||||
'colspan', 'valign', 'vspace', 'hspace', 'alt', 'width', 'height', 'font']
|
||||
preprocess_regexps = [(re.compile(r'<br[ ]*/>', re.IGNORECASE), lambda m: ''),
|
||||
(re.compile(r'<br[ ]*clear.*/>', re.IGNORECASE), lambda m: '')]
|
||||
|
||||
feeds = [(u'Aktualno\u015bci', u'http://7thguard.net/feed/')]
|
Loading…
x
Reference in New Issue
Block a user