View Single Post
Old 09-22-2010, 06:22 AM   #2799
TonytheBookworm
Addict
TonytheBookworm is on a distinguished road
 
TonytheBookworm's Avatar
 
Posts: 264
Karma: 62
Join Date: May 2010
Device: kindle 2, kindle 3, Kindle fire
Quote:
Originally Posted by N13L5 View Post
would love the RSS feed from

http://www.globalpropertyguide.com

http://www.Wired.com



holy cow! 187 pages to this thread, did not see that!!

god knows the wired recipe is probably somewhere in there already
wired is in the built in recipes in calibre already both the daily edition, the magazine and the uk version
and here is globalproperty
Spoiler:

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

class GlobalProperty(BasicNewsRecipe):
    title = 'Global Property Guide'
    language = 'en'
    __author__ = 'TonytheBookworm'
    description = 'This is a site for residential property investors who want to buy houses or apartments in other countries'
    publisher = 'GlobalPropertyGuide.com'
    category = 'prices,real-estate'
    oldest_article = 10
    max_articles_per_feed = 100
    no_stylesheets = True
    extra_css = '''
                    h1{font-family:Arial,Helvetica,sans-serif; font-weight:bold;font-size:large;}
                    h2{font-family:Arial,Helvetica,sans-serif; font-weight:normal;font-size:small;}
                    p{font-family:Arial,Helvetica,sans-serif;font-size:small;}
                    body{font-family:Helvetica,Arial,sans-serif;font-size:small;}
		             '''
    
    keep_only_tags    = [
                         dict(name='div', attrs={'class':['cd_mainbody']})
                        ]
    remove_tags = [
                   dict(name='div', attrs={'class':['addthis_toolbox addthis_default_style']}),
                   
                  ]                    
    feeds          = [
                      ('Main Feed', 'http://www.globalpropertyguide.com/rss'),
                      
                    ]

Last edited by TonytheBookworm; 09-22-2010 at 07:24 AM. Reason: added globalpropertycode
TonytheBookworm is offline