mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-06-23 15:30:45 -04:00
53 lines
1.7 KiB
Plaintext
53 lines
1.7 KiB
Plaintext
# -*- coding: utf-8 -*-
|
|
#!/usr/bin/env python
|
|
|
|
__license__ = 'GPL v3'
|
|
__copyright__ = u'2011, Silviu Cotoar\u0103'
|
|
'''
|
|
intrefete.ro
|
|
'''
|
|
|
|
from calibre.web.feeds.news import BasicNewsRecipe
|
|
|
|
class Intrefete(BasicNewsRecipe):
|
|
title = u'\u00centre fete'
|
|
__author__ = u'Silviu Cotoar\u0103'
|
|
description = u'Petrece ziua cu stil, afl\u0103 ce e nou \u00eentre fete'
|
|
publisher = u'Intre fete'
|
|
oldest_article = 5
|
|
language = 'ro'
|
|
max_articles_per_feed = 100
|
|
no_stylesheets = True
|
|
use_embedded_content = False
|
|
category = 'Ziare,Reviste,Femei'
|
|
encoding = 'utf-8'
|
|
cover_url = 'http://storage0.dms.mpinteractiv.ro/media/2/1401/16788/5878693/5/logo.jpg?width=300'
|
|
|
|
conversion_options = {
|
|
'comments' : description
|
|
,'tags' : category
|
|
,'language' : language
|
|
,'publisher' : publisher
|
|
}
|
|
|
|
keep_only_tags = [
|
|
dict(name='div', attrs={'class':'article'})
|
|
]
|
|
|
|
remove_tags = [
|
|
dict(name='div', attrs={'class':['author']})
|
|
, dict(name='div', attrs={'class':['tags']})
|
|
, dict(name='iframe', attrs={'scrolling':['no']})
|
|
]
|
|
|
|
remove_tags_after = [
|
|
dict(name='iframe', attrs={'scrolling':['no']})
|
|
]
|
|
|
|
feeds = [
|
|
(u'Feeds', u'http://www.intrefete.ro/rss/')
|
|
]
|
|
|
|
def preprocess_html(self, soup):
|
|
return self.adeify_images(soup)
|