Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Newer
Older
100644 59 lines (50 sloc) 2.551 kb
fca9bfb Updated to calibre 0.8.32
Tom authored
1 ################################################################################
2555858 Updated to calibre 0.8.37
Tom authored
2 #Description: http://es.hu/ RSS channel
3 #Author: Bigpapa (bigpapabig@hotmail.com)
4 #Date: 2012.01.20. - V1.2
fca9bfb Updated to calibre 0.8.32
Tom authored
5 ################################################################################
6
7 from calibre.web.feeds.recipes import BasicNewsRecipe
8
9 class elet_es_irodalom(BasicNewsRecipe):
2555858 Updated to calibre 0.8.37
Tom authored
10 title = u'\u00c9let \u00e9s Irodalom'
fca9bfb Updated to calibre 0.8.32
Tom authored
11 __author__ = 'Bigpapa'
c784c8c Updated to calibre 0.8.36
Tom authored
12 oldest_article = 7
2555858 Updated to calibre 0.8.37
Tom authored
13 max_articles_per_feed = 30 # Az adott e-bookban tarolt cikkek feedenkenti maximalis szamat adja meg.
fca9bfb Updated to calibre 0.8.32
Tom authored
14 no_stylesheets = True
15 #delay = 1
16 use_embedded_content = False
17 encoding = 'iso-8859-2'
18 category = 'Cikkek'
19 language = 'hu'
20 publication_type = 'newsportal'
21 extra_css = '.doc_title { font: bold 30px } .doc_author {font: bold 14px} '
2555858 Updated to calibre 0.8.37
Tom authored
22 needs_subscription = 'optional'
23
24 masthead_url = 'http://www.es.hu/images/logo.jpg'
25 timefmt = ' [%Y %b %d, %a]'
26
27 #Nem ide a kódba kell beleírni a hozzáférés adatait, hanem azt akkor adod meg, ha le akarod tölteni!
28 def get_browser(self):
29 br = BasicNewsRecipe.get_browser()
30 if self.username is not None and self.password is not None:
31 br.open('http://www.es.hu/')
32 br.select_form(name='userfrmlogin')
33 br['cusername'] = self.username
34 br['cpassword'] = self.password
35 br.submit()
36 return br
fca9bfb Updated to calibre 0.8.32
Tom authored
37
38 keep_only_tags = [
39 dict(name='div', attrs={'class':['doc_author', 'doc_title', 'doc']})
2555858 Updated to calibre 0.8.37
Tom authored
40 ]
fca9bfb Updated to calibre 0.8.32
Tom authored
41
42 remove_tags = [
2555858 Updated to calibre 0.8.37
Tom authored
43 dict(name='a', attrs={'target':['_TOP']}),
44 dict(name='div', attrs={'style':['float: right; margin-left: 5px; margin-bottom: 5px;', 'float: right; margin-left: 5px; margin-bottom: 5px;']}),
fca9bfb Updated to calibre 0.8.32
Tom authored
45
2555858 Updated to calibre 0.8.37
Tom authored
46 ]
fca9bfb Updated to calibre 0.8.32
Tom authored
47
48 feeds = [
2555858 Updated to calibre 0.8.37
Tom authored
49 (u'Publicisztika', 'http://www.feed43.com/4684235031168504.xml'),
50 (u'Interj\xfa', 'http://www.feed43.com/4032465460040618.xml'),
51 (u'Visszhang', 'http://www.feed43.com/3727375706873086.xml'),
52 (u'P\xe1ratlan oldal', 'http://www.feed43.com/2525784782475057.xml'),
53 (u'Feuilleton', 'http://www.feed43.com/7216025082703073.xml'),
54 (u'Pr\xf3za', 'http://www.feed43.com/8760248802326384.xml'),
55 (u'Vers', 'http://www.feed43.com/1737324675134275.xml'),
56 (u'K\xf6nyvkritika', 'http://www.feed43.com/1281156550717082.xml'),
57 (u'M\u0171b\xedr\xe1lat', 'http://www.feed43.com/1851854623681044.xml')
58 ]
Something went wrong with that request. Please try again.