|
|
#1 |
|
Member
![]() Posts: 21
Karma: 34
Join Date: Nov 2008
Device: Sony 505
|
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
|
|
|
|
|
|
#2 | |
|
Guru
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 800
Karma: 194644
Join Date: Dec 2007
Location: Argentina
Device: Kindle Voyage
|
Quote:
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'
|
|
|
|
|
| Advert | |
|
|
|
|
#3 |
|
Member
![]() 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!!
|
|
|
|
|
|
#4 | |
|
Guru
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 800
Karma: 194644
Join Date: Dec 2007
Location: Argentina
Device: Kindle Voyage
|
Quote:
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')]
|
|
|
|
|
|
|
#5 |
|
Member
![]() Posts: 21
Karma: 34
Join Date: Nov 2008
Device: Sony 505
|
|
|
|
|
| Advert | |
|
|
![]() |
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Request for recipes of sites with no rss | PipSqueak | Recipes | 1 | 10-16-2010 11:05 PM |
| Where my recipes are kept? | bthoven | Calibre | 6 | 02-26-2010 01:20 AM |
| Help with RSS recipes | fmma | Calibre | 1 | 06-15-2009 12:51 PM |
| Request for recipes | mccande | Calibre | 4 | 12-26-2008 02:05 AM |
| Request for Recipes | GPThomson | Calibre | 2 | 11-21-2008 01:19 PM |