Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Calibre

Notices

Reply
 
Thread Tools Search this Thread
Old 11-12-2008, 01:00 PM   #1
girlperson1
Member
girlperson1 began at the beginning.
 
Posts: 21
Karma: 34
Join Date: Nov 2008
Device: Sony 505
Smile Request for Recipes

I would like recipes for the following newspapers if possible, Please and thank you.

http://www.themoscowtimes.com/rss.xml

http://www.latimes.com/services/site...9586.htmlstory

girlperson1 is offline   Reply With Quote
Old 11-12-2008, 02:58 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: 800
Karma: 194644
Join Date: Dec 2007
Location: Argentina
Device: Kindle Voyage
Quote:
Originally Posted by girlperson1 View Post
I would like recipes for the following newspapers if possible, Please and thank you.

http://www.themoscowtimes.com/rss.xml

http://www.latimes.com/services/site...9586.htmlstory

Here is The Moscow Times

Code:
#!/usr/bin/env  python

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

from calibre.web.feeds.news import BasicNewsRecipe

class Moscowtimes(BasicNewsRecipe):
    title                 = u'The Moscow Times'
    __author__            = 'Darko Miletic'
    description           = 'News from Russia'    
    oldest_article        = 7
    max_articles_per_feed = 100
    no_stylesheets        = True
    use_embedded_content  = False

    feeds          = [
                        (u'The Moscow Times'     , u'http://www.themoscowtimes.com/rss.xml'     )
                     ]

    def print_version(self, url):
        return url + '&print=Y'
kiklop74 is offline   Reply With Quote
Advert
Old 11-12-2008, 03:10 PM   #3
girlperson1
Member
girlperson1 began at the beginning.
 
Posts: 21
Karma: 34
Join Date: Nov 2008
Device: Sony 505
Thanks!!

Thanks for the recipe for the Moscow Times!! I'm going to run it right now!!
girlperson1 is offline   Reply With Quote
Old 11-12-2008, 03:14 PM   #4
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: 800
Karma: 194644
Join Date: Dec 2007
Location: Argentina
Device: Kindle Voyage
Quote:
Originally Posted by girlperson1 View Post
Code:
#!/usr/bin/env  python

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

from calibre.web.feeds.news import BasicNewsRecipe

class Latimes(BasicNewsRecipe):
    title                 = u'Los Angeles Times'
    __author__            = u'Darko Miletic'
    description           = u'LA News'    
    oldest_article        = 7
    max_articles_per_feed = 100
    no_stylesheets        = True
    use_embedded_content  = False

    keep_only_tags    = [ dict(name='div', attrs={'id':'center'   }) ]
    remove_tags_after = [ dict(name='div', attrs={'id':'socialnet'}) ]
    remove_tags       = [
                           dict(name='div' , attrs={'id':'wrapper_vid'    })
                          ,dict(name='div' , attrs={'id':'article_related'})
                          ,dict(name='div' , attrs={'id':'socialnet'      })
                        ]

    feeds          = [(u'News', u'http://feeds.latimes.com/latimes/news')]
kiklop74 is offline   Reply With Quote
Old 11-12-2008, 03:25 PM   #5
girlperson1
Member
girlperson1 began at the beginning.
 
Posts: 21
Karma: 34
Join Date: Nov 2008
Device: Sony 505
girlperson1 is offline   Reply With Quote
Advert
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Request for recipes of sites with no rss PipSqueak Recipes 1 10-16-2010 10:05 PM
Where my recipes are kept? bthoven Calibre 6 02-26-2010 12:20 AM
Help with RSS recipes fmma Calibre 1 06-15-2009 11:51 AM
Request for recipes mccande Calibre 4 12-26-2008 01:05 AM
Request for Recipes GPThomson Calibre 2 11-21-2008 12:19 PM


All times are GMT -4. The time now is 06:17 PM.


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