View Single Post
Old 12-27-2011, 06:21 AM   #3
Krittika Goyal
Vox calibre
Krittika Goyal ought to be getting tired of karma fortunes by now.Krittika Goyal ought to be getting tired of karma fortunes by now.Krittika Goyal ought to be getting tired of karma fortunes by now.Krittika Goyal ought to be getting tired of karma fortunes by now.Krittika Goyal ought to be getting tired of karma fortunes by now.Krittika Goyal ought to be getting tired of karma fortunes by now.Krittika Goyal ought to be getting tired of karma fortunes by now.Krittika Goyal ought to be getting tired of karma fortunes by now.Krittika Goyal ought to be getting tired of karma fortunes by now.Krittika Goyal ought to be getting tired of karma fortunes by now.Krittika Goyal ought to be getting tired of karma fortunes by now.
 
Krittika Goyal's Avatar
 
Posts: 412
Karma: 1175230
Join Date: Jan 2009
Device: Sony reader prs700, kobo
recipe

here is the recipe

Code:
from calibre.web.feeds.news import BasicNewsRecipe
from calibre.ebooks.BeautifulSoup import BeautifulSoup

class NYTimesGlobal(BasicNewsRecipe):
    title          = u'NY Times Global'
    language       = 'en'
    __author__     = 'Krittika Goyal'
    oldest_article = 1 #days
    max_articles_per_feed = 25
    use_embedded_content = False

    no_stylesheets = True
    auto_cleanup = True


    feeds          = [
('NYTimes', 
 'http://www.nytimes.com/services/xml/rss/nyt/HomePage.xml'),
('NYTimes global', 
 'http://www.nytimes.com/services/xml/rss/nyt/GlobalHome.xml'),
('World', 
 'http://www.nytimes.com/services/xml/rss/nyt/World.xml'),
('U.S.', 
 'http://www.nytimes.com/services/xml/rss/nyt/US.xml'),
('Business', 
 'http://feeds.nytimes.com/nyt/rss/Business'),
('Sports', 
 'http://www.nytimes.com/services/xml/rss/nyt/Sports.xml'),
('Technology',
 'http://feeds.nytimes.com/nyt/rss/Technology'),
]

Last edited by Krittika Goyal; 12-27-2011 at 06:37 AM. Reason: typo
Krittika Goyal is offline   Reply With Quote