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

  1. # -*- coding: utf-8 -*-
  2.  
  3. from calibre.web.feeds.news import BasicNewsRecipe
  4.  
  5. class YeniUmit(BasicNewsRecipe):
  6.     title          = u'Yeni Umit Dergisi'
  7.     __author__            = u'thomass'
  8.     description            = 'Ayl─▒k Dini ─░limler ve K├╝lt├╝r Dergisi'
  9.     oldest_article         = 45
  10.     max_articles_per_feed  =100
  11.     no_stylesheets         = True
  12.     #delay                  = 1
  13.     #use_embedded_content   = False
  14.  
  15.     #publisher              = '  '
  16.     category               = 'dergi, ilim, k├╝lt├╝r, edebiyat,T├╝rk├ºe'
  17.     language               = 'tr'
  18.     publication_type = 'magazine'
  19.     encoding               = 'ISO 8859-9'
  20.     publisher              = 'thomass'
  21.  
  22.  
  23.  
  24.     #extra_css              = ' body{ font-family: Verdana,Helvetica,Arial,sans-serif } .introduction{font-weight: bold} .story-feature{display: block; padding: 0; border: 1px solid; width: 40%; font-size: small} .story-feature h2{text-align: center; text-transform: uppercase} '
  25.     conversion_options = {
  26.                             'tags'            : category
  27.                             ,'language'        : language
  28.                             ,'publisher'       : publisher
  29.                             ,'linearize_tables': True
  30.                          }
  31.     #extra_css              = ' body{ font-family: Verdana,Helvetica,Arial,sans-serif } .introduction{font-weight: bold} .story-feature{display: block; padding: 0; border: 1px solid; width: 40%; font-size: small} .story-feature h2{text-align: center; text-transform: uppercase} '
  32.     #keep_only_tags    = [dict(name='h1', attrs={'class':['georgia_30']})]
  33.  
  34.     #remove_attributes = ['aria-describedby']
  35.     #remove_tags  = [dict(name='div', attrs={'id':['renk10']}) ]
  36.     cover_img_url = 'http://www.sizinti.com.tr/images/dergiler/d1.gif'
  37.     masthead_url = 'http://www.sizinti.com.tr/images/dergiler/d1.gif'
  38.     #remove_tags_before = dict(id='content-right')
  39.  
  40.  
  41.     #remove_empty_feeds= True
  42.     #remove_attributes = ['width','height']
  43.  
  44.     feeds          = [
  45.                       ( u'Yeni Umit', u'http://open.dapper.net/services/yeniumit'),
  46.                         ]
  47.  
  48.     #def preprocess_html(self, soup):
  49.      #   return self.adeify_images(soup)
  50.     def print_version(self, url):       #there is a probem caused by table format
  51.      return url.replace('http://www.yeniumit.com.tr/konular', 'http://www.yeniumit.com.tr/yazdir')
  52.  
  53.