Register Guidelines E-Books Search Today's Posts Mark Forums Read

Go Back   MobileRead Forums > E-Book Software > Calibre > Recipes

Notices

Reply
 
Thread Tools Search this Thread
Old 10-22-2011, 04:24 PM   #1
entodoays
Zealot
entodoays will become famous soon enoughentodoays will become famous soon enoughentodoays will become famous soon enoughentodoays will become famous soon enoughentodoays will become famous soon enoughentodoays will become famous soon enoughentodoays will become famous soon enough
 
entodoays's Avatar
 
Posts: 139
Karma: 706
Join Date: Oct 2011
Device: Sony Reader PRS-T1
RSS feed with date in url

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')]

Last edited by entodoays; 10-22-2011 at 04:59 PM. Reason: Update
entodoays is offline   Reply With Quote
Reply

Tags
date, rss feed conversion, system information, variable

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Trying to strip the date from an article URL Finbar127 Recipes 1 02-17-2011 03:02 PM
Simple download from rss url recipe BloodOmen Recipes 0 02-16-2011 09:21 PM
RSS Feed timezone Feedback 8 01-02-2010 06:55 PM
RSS Feed Prob... AKninja04 Calibre 6 08-25-2008 07:51 PM


All times are GMT -4. The time now is 10:29 AM.


MobileRead.com is a privately owned, operated and funded community.