The new recipe works on my 1st machine! I have some questions, but not sure if they should go in another thread or here, so...
I played with all the tutorials and successfully modified some existing recipes. Most of them make sense to me - as in: you can cut-and-paste a feed from the recipe into a browser and see what it returns and go from there, but the ones in the Dallas Morning News feed redirect my browser to
http://www.dallasnews.com/site-map/ ? I don't see how they return articles at all but they do.
Also, is there a way to see the processed feed before it's converted to mobi so I can tell what tags correspond to different pieces of an article? I tried to left justify the "body" and "articlebody" in a recipe to bring in 3 feeds from the dallas morning news sport section (cowboys, rangers, and mavericks) :
import re
from calibre.web.feeds.recipes import BasicNewsRecipe
class AdvancedUserRecipe1295487944(BasicNewsRecipe):
title = u'DMN Team RSS Sports Feeds'
oldest_article = 7
max_articles_per_feed = 100
remove_tags = [dict(name='div', attrs={'class':'categoryGroup'})]
remove_tags.append(dict(name = 'div', attrs = {'class': 'archivesGroup'}))
feeds = [(u'Rangers RSS', u'http://rangersblog.dallasnews.com/index.xml'), (u'Mavericks RSS', u'http://mavsblog.dallasnews.com/index.xml'), (u'Cowboys RSS', u'http://cowboysblog.dallasnews.com/index.xml')]
but whatever I do the main part of the article ends up being center justified. Is this the right place to ask, or should I post a new thread?
Thanks again, and this is fun for someone who hasn't done any serious coding in a long time!
Joe