Register Guidelines E-Books Search Today's Posts Mark Forums Read

Go Back   MobileRead Forums > E-Book Software > Calibre

Notices

Reply
 
Thread Tools Search this Thread
Old 11-14-2008, 10:57 AM   #1
girlperson1
Member
girlperson1 began at the beginning.
 
Posts: 21
Karma: 34
Join Date: Nov 2008
Device: Sony 505
Request for Recipe

The San Francisco Chronicle, Pretty please!!

http://www.sfgate.com/rss/
girlperson1 is offline   Reply With Quote
Old 11-14-2008, 11:26 PM   #2
kiklop74
Guru
kiklop74 can program the VCR without an owner's manual.kiklop74 can program the VCR without an owner's manual.kiklop74 can program the VCR without an owner's manual.kiklop74 can program the VCR without an owner's manual.kiklop74 can program the VCR without an owner's manual.kiklop74 can program the VCR without an owner's manual.kiklop74 can program the VCR without an owner's manual.kiklop74 can program the VCR without an owner's manual.kiklop74 can program the VCR without an owner's manual.kiklop74 can program the VCR without an owner's manual.kiklop74 can program the VCR without an owner's manual.
 
kiklop74's Avatar
 
Posts: 780
Karma: 194644
Join Date: Dec 2007
Location: Argentina
Device: Kindle PaperWhite, Motorola Xoom
Quote:
Originally Posted by girlperson1 View Post
The San Francisco Chronicle, Pretty please!!

http://www.sfgate.com/rss/

Code:
#!/usr/bin/env  python

__license__   = 'GPL v3'
__copyright__ = '2008, Darko Miletic <darko.miletic at gmail.com>'
'''
sfgate.com
'''

from calibre.web.feeds.news import BasicNewsRecipe

class sfgate(BasicNewsRecipe):
    title                 = u'San Francisco Chronicle'
    __author__            = u'Darko Miletic'
    description           = u'San Francisco news'    
    oldest_article        = 7
    max_articles_per_feed = 100
    no_stylesheets        = True
    use_embedded_content  = False

    keep_only_tags    = [dict(name='td' , attrs={'class':'column1 w627'})]
    remove_tags_after =  dict(name='div', attrs={'id':'articlecontent' })
    remove_tags = [
                     dict(name='div', attrs={'class':'tools tools_top'})
                    ,dict(name='div', attrs={'id':'articlebox'        })
                  ]

    feeds          = [  
                         (u'Top News Stories', u'http://www.sfgate.com/rss/feeds/news.xml')
                     ]
kiklop74 is offline   Reply With Quote
Old 11-14-2008, 11:43 PM   #3
girlperson1
Member
girlperson1 began at the beginning.
 
Posts: 21
Karma: 34
Join Date: Nov 2008
Device: Sony 505
girlperson1 is offline   Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Request for recipe sumper Recipes 2 10-11-2010 03:25 AM
Recipe request please aessedai44 Recipes 2 10-06-2010 02:07 AM
Yet another Recipe request.. sherman Calibre 4 11-21-2008 05:42 AM
Request for Recipe girlperson1 Calibre 2 11-14-2008 08:59 AM
Request for recipe girlperson1 Calibre 2 11-13-2008 11:03 PM


All times are GMT -4. The time now is 05:08 PM.


MobileRead.com is a privately owned, operated and funded community.