home *** CD-ROM | disk | FTP | other *** search
/ Chip 2011 November / CHIP_2011_11.iso / Programy / Narzedzia / Calibre / calibre-0.8.18.msi / file_280 / biz_portal.recipe < prev    next >
Text File  |  2011-09-09  |  2KB  |  41 lines

  1. from calibre.web.feeds.news import BasicNewsRecipe
  2.  
  3. class AdvancedUserRecipe1283848012(BasicNewsRecipe):
  4.     description   = 'This is a recipe of BizPortal.co.il.'
  5.     cover_url      = 'http://www.bizportal.co.il/shukhahon/images/bizportal.jpg'
  6.     title          = u'BizPortal'
  7.     language              = 'he'
  8.     __author__ = 'marbs'
  9.     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; }'
  10.     simultaneous_downloads = 5
  11.     remove_javascript     = True
  12.     timefmt        = '[%a, %d %b, %Y]'
  13.     remove_empty_feeds = True
  14.     oldest_article = 1
  15.     max_articles_per_feed = 100
  16.     remove_attributes = ['width']
  17.     simultaneous_downloads = 5
  18.   #  keep_only_tags =dict(name='div', attrs={'id':'articleContainer'})
  19.     remove_tags = [dict(name='img', attrs={'scr':['images/bizlogo_nl.gif']})]
  20.     max_articles_per_feed = 100
  21.     #preprocess_regexps = [
  22.   #      (re.compile(r'<p> </p>', re.DOTALL|re.IGNORECASE), lambda match: '')
  23. #        ]
  24.  
  25.  
  26.     feeds          = [(u'╫ù╫ô╫⌐╫ò╫¬ ╫⌐╫ò╫º ╫ö╫ö╫ò╫ƒ', u'http://www.bizportal.co.il/shukhahon/messRssUTF2.xml'),
  27.                            (u'╫ù╫ô╫⌐╫ò╫¬ ╫ò╫ò╫£ ╫í╫ÿ╫¿╫Ö╫ÿ ╫æ╫ó╫æ╫¿╫Ö╫¬', u'http://www.bizportal.co.il/shukhahon/images/bizportal.jpg'),
  28.                            (u'╫⌐╫Ö╫ò╫ò╫º ╫ò╫ñ╫¿╫í╫ò╫¥', u'http://www.bizportal.co.il/shukhahon/messRssUTF145.xml'),
  29.                            (u'╫₧╫⌐╫ñ╫ÿ', u'http://www.bizportal.co.il/shukhahon/messRssUTF3.xml'),
  30.                            (u'╫á╫Ö╫¬╫ò╫ù ╫ÿ╫¢╫á╫Ö', u'http://www.bizportal.co.il/shukhahon/messRssUTF5.xml'),
  31.                            (u'╫ô╫Ö╫á╫Ö ╫ó╫æ╫ò╫ô╫ö ╫ò╫⌐╫¢╫¿', u'http://www.bizportal.co.il/shukhahon/messRssUTF6.xml'),
  32.                            (u'╫₧╫Ö╫í╫ò╫Ö', u'http://www.bizportal.co.il/shukhahon/messRssUTF7.xml'),
  33.                            (u'╫ÿ╫É╫æ╫ò', u'http://www.bizportal.co.il/shukhahon/messRssUTF8.xml'),
  34.                            (u'╫á╫ô╫£"╫ƒ', u'http://www.bizportal.co.il/shukhahon/messRssUTF160.xml'),
  35.                               ]
  36.  
  37.     def print_version(self, url):
  38.         split1 = url.split("=")
  39.         print_url = 'http://www.bizportal.co.il/web/webnew/shukhahon/biznews02print.shtml?mid=' + split1[1]
  40.         return print_url
  41.