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

  1. # -*- coding: utf-8 -*-
  2.  
  3. from calibre.web.feeds.news import BasicNewsRecipe
  4.  
  5. class TodaysZaman_en(BasicNewsRecipe):
  6.     title          = u'S─▒z─▒nt─▒ Dergisi'
  7.     __author__            = u'thomass'
  8.     description            = 'a Turkey based daily for national and international news in the fields of business, diplomacy, politics, culture, arts, sports and economics, in addition to commentaries, specials and features'
  9.     oldest_article         = 30
  10.     max_articles_per_feed  =80
  11.     no_stylesheets         = True
  12.     #delay                  = 1
  13.     #use_embedded_content   = False
  14.     encoding               = 'utf-8'
  15.     #publisher              = '  '
  16.     category               = 'dergi, ilim, k├╝lt├╝r, bilim,T├╝rk├ºe'
  17.     language               = 'tr'
  18.     publication_type = 'magazine'
  19.     #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} '
  20.     #keep_only_tags    = [dict(name='h1', attrs={'class':['georgia_30']})]
  21.  
  22.     #remove_attributes = ['aria-describedby']
  23.     #remove_tags  = [dict(name='div', attrs={'id':['renk10']}) ]
  24.     cover_img_url = 'http://www.sizinti.com.tr/images/sizintiprint.jpg'
  25.     masthead_url = 'http://www.sizinti.com.tr/images/sizintiprint.jpg'
  26.     remove_tags_before = dict(id='content-right')
  27.  
  28.  
  29.     #remove_empty_feeds= True
  30.     #remove_attributes = ['width','height']
  31.  
  32.     feeds          = [
  33.                       ( u'S─▒z─▒nt─▒', u'http://www.sizinti.com.tr/rss'),
  34.                         ]
  35.  
  36.     #def preprocess_html(self, soup):
  37.      #   return self.adeify_images(soup)
  38.     #def print_version(self, url):       #there is a probem caused by table format
  39.      #return url.replace('http://www.todayszaman.com/newsDetail_getNewsById.action?load=detay&', 'http://www.todayszaman.com/newsDetail_openPrintPage.action?')
  40.  
  41.