I would like to create a recipe with three RSS feeds taken from this site:
http://feed.evangelizo.org/reader.php
The recipe should get three feed lines of the sort:
http://feed.evangelizo.org/reader.ph...FR&content=GSP
where the date=xxxxxx is today. Possibly the recipe would get also the entries for seven days in a row.
How do I make the recipe change the date variable each time it downloads?
I went through the manual and didn't find a command for the date.
Any clues?
Update: I tried testing with a sample url and nothing was downloaded so it seems the question is not only of getting the date in but also how to recover the data from the link.
About the date I did a search for python date strings and tried this code here:
import datetime
today = datetime.date.today()
td = str(today.year) + str(today.month) + str(today.day)
r1 = 'http://feed.evangelizo.org/reader.php?date=' + td + '&type=reading&lang=FR&content=FR'
class AdvancedUserRecipe1319315872(BasicNewsRecipe):
title = u'Evangelizo'
oldest_article = 7
max_articles_per_feed = 100
auto_cleanup = True
feeds = [(u'Reading', r1),(u'Psalm', u'http://feed.evangelizo.org/reader.php?date=20111023&type=reading&lang=FR&cont ent=PS'), (u'Gospel', u'http://feed.evangelizo.org/reader.php?date=20111023&type=reading&lang=FR&cont ent=GSP')]