Debian Codegraph @

recipes/calcalist.recipe

raw
1 import re
2
3 from calibre.web.feeds.news import BasicNewsRecipe
4
5
6 class AdvancedUserRecipe1283848012(BasicNewsRecipe):
7 description = 'This is a recipe of Calcalist.co.il'
8 cover_url = 'https://images1.calcalist.co.il//picserver3/wcm_upload_dev/2022/09/15/Hk9OzwlWi/calcalistlogn.png'
9 title = 'Calcalist'
10 language = 'he'
11 __author__ = 'marbs'
12 extra_css = 'img {max-width:100%;} body{direction: rtl;},title{direction: rtl; } ,article_description{direction: rtl; }, a.article{direction: rtl; } ,calibre_feed_description{direction: rtl; }' # noqa: E501
13 remove_javascript = True
14 timefmt = '[%a, %d %b, %Y]'
15 oldest_article = 1
16 max_articles_per_feed = 100
17 remove_attributes = ['width']
18 simultaneous_downloads = 5
19 keep_only_tags = [
20 dict(name='h1', attrs={'class': 'mainTitle'}),
21 dict(name='h2', attrs={'class': 'subTitle'}),
22 dict(name='div', attrs={'class': 'ArticleBodyComponent'}),
23 ]
24 remove_tags = [dict(name='p', attrs={'text': [' ']})]
25 preprocess_regexps = [(re.compile(r'<p>&nbsp;</p>', re.DOTALL | re.IGNORECASE), lambda match: '')]
26
27 feeds = [
28 (' דף הבית', 'http://www.calcalist.co.il/GeneralRSS/0,16335,L-8,00.xml'),
29 (' 24/7', 'http://www.calcalist.co.il/GeneralRSS/0,16335,L-3674,00.xml'),
30 (' באזז', 'http://www.calcalist.co.il/GeneralRSS/0,16335,L-3673,00.xml'),
31 (' משפט', 'http://www.calcalist.co.il/GeneralRSS/0,16335,L-3772,00.xml'),
32 (' רכב', 'http://www.calcalist.co.il/GeneralRSS/0,16335,L-3783,00.xml'),
33 (' אחריות וסביבה', 'http://www.calcalist.co.il/GeneralRSS/0,16335,L-3781,00.xml'),
34 (' דעות', 'http://www.calcalist.co.il/GeneralRSS/0,16335,L-3791,00.xml'),
35 (' תיירות ותעופה', 'http://www.calcalist.co.il/GeneralRSS/0,16335,L-3784,00.xml'),
36 (' קריירה', 'http://www.calcalist.co.il/GeneralRSS/0,16335,L-3782,00.xml'),
37 (' אחד העם', 'http://www.calcalist.co.il/GeneralRSS/0,16335,L-3768,00.xml'),
38 (' המלצות ואזהרות', 'http://www.calcalist.co.il/GeneralRSS/0,16335,L-3771,00.xml'),
39 (' הייטק והון סיכון', 'http://www.calcalist.co.il/GeneralRSS/0,16335,L-3928,00.xml'),
40 (' חדשות טכנולוגיה', 'http://www.calcalist.co.il/GeneralRSS/0,16335,L-3778,00.xml'),
41 (' תקשורת', 'http://www.calcalist.co.il/GeneralRSS/0,16335,L-4471,00.xml'),
42 (' אינטרנט', 'http://www.calcalist.co.il/GeneralRSS/0,16335,L-3773,00.xml'),
43 (" מכשירים וגאדג'טים", 'http://www.calcalist.co.il/GeneralRSS/0,16335,L-3777,00.xml'),
44 (' המדריך', 'http://www.calcalist.co.il/GeneralRSS/0,16335,L-3880,00.xml'),
45 (' אפליקציות', 'http://www.calcalist.co.il/GeneralRSS/0,16335,L-3998,00.xml'),
46 (' Play', 'http://www.calcalist.co.il/GeneralRSS/0,16335,L-3792,00.xml'),
47 (' הכסף', 'http://www.calcalist.co.il/GeneralRSS/0,16335,L-9,00.xml'),
48 (' עולם', 'http://www.calcalist.co.il/GeneralRSS/0,16335,L-13,00.xml'),
49 (' פרסום ושיווק', 'http://www.calcalist.co.il/GeneralRSS/0,16335,L-5,00.xml'),
50 (' פנאי', 'http://www.calcalist.co.il/GeneralRSS/0,16335,L-3,00.xml'),
51 (' עסקי ספורט', 'http://WallaNewsw.calcalist.co.il/GeneralRSS/0,16335,L-18,00.xml'),
52 ]