![]() |
#2356 |
Junior Member
![]() Posts: 5
Karma: 10
Join Date: Jul 2010
Device: sony
|
Download articles since the last time I downloaded
Hi!
Loving recipes for my ereader. Question -- is there a way to only download articles since the last time I downloaded? Or even (for example) parse through say the last few days of downloaded articles and toss out everything that is before the last time I downloaded? I hope that made sense ![]() If this has been done before, perhaps someone can point me in the direction of a recipe where it has been done? Preferably of an RSS feed, since those are easier for me to decode and reverse engineer. I looked through a bunch of postings, but didn't see anything. Thanks!! |
![]() |
![]() |
#2357 | |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 4,004
Karma: 177841
Join Date: Dec 2009
Device: WinMo: IPAQ; Android: HTC HD2, Archos 7o; Java:Gravity T
|
They are great aren't they!
Code:
Question -- is there a way to only download articles since the last time I downloaded? ![]() Quote:
OOPS! I was thinking you wanted to control the old EPUBs, not the old articles. There is some talk of adding a control for this - keeping track of previously downloaded articles, but it's not yet implemented. I agree it would be useful. Last edited by Starson17; 07-28-2010 at 05:01 PM. |
|
![]() |
![]() |
#2358 | |
award-winning bozo
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 258
Karma: 172703
Join Date: Sep 2009
Location: Philadelphia
Device: Kobo Libra 2
|
Quote:
The only thing I could suggest is setting the limit to ignore articles more than 1 day old and then setting calibre to download new articles every day. |
|
![]() |
![]() |
#2359 |
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45,380
Karma: 27230406
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
It's on the todo list.
|
![]() |
![]() |
#2360 |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 4,004
Karma: 177841
Join Date: Dec 2009
Device: WinMo: IPAQ; Android: HTC HD2, Archos 7o; Java:Gravity T
|
New REcipe: They Draw and Cook
I seem to specialize in comics and food recipes. This is a bit of both! Food recipes in graphic form. Enjoy!
|
![]() |
![]() |
#2361 |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 4,004
Karma: 177841
Join Date: Dec 2009
Device: WinMo: IPAQ; Android: HTC HD2, Archos 7o; Java:Gravity T
|
New Recipe: They Draw and Cook
Deleted as a dupe.
|
![]() |
![]() |
#2362 |
Junior Member
![]() Posts: 8
Karma: 10
Join Date: Jun 2010
Device: none
|
It would be great if someone could make a recipe for the show me city St. Louis Post-Dispatch & STLtoday.com, I use Instapaper to load individual articles, thanks.
|
![]() |
![]() |
#2363 | |
Junior Member
![]() Posts: 5
Karma: 10
Join Date: Jul 2010
Device: sony
|
Quote:
a) Side question: If I set it to download for the days = 1, does it download everything since Wednesday 12am? Or does days = 2 do that? And is it since 12am, or the current time? b) What I was hoping to do originally was be able to download everything from Wednesday 12am, lift the value that I last downloaded at 2:30pm, and toss everything from before Wednesday 2:30pm. Sounds like its on the the to do list though! Awesome work -- now I'm trying to get my 72-year old dad hooked on recipes so he doesn't have to read the news on his laptop. ![]() |
|
![]() |
![]() |
#2364 | ||
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 4,004
Karma: 177841
Join Date: Dec 2009
Device: WinMo: IPAQ; Android: HTC HD2, Archos 7o; Java:Gravity T
|
Quote:
![]() Quote:
|
||
![]() |
![]() |
#2365 |
Connoisseur
![]() Posts: 51
Karma: 10
Join Date: Jul 2010
Device: colognesbook
|
I'm trying to make my first recipe but I can't see why this isn't working:
Code:
class AdvancedUserRecipe1280289069(BasicNewsRecipe): title = u'Metro Daily' oldest_article = 7 max_articles_per_feed = 100 feeds = [(u'metro local', u'http://www.metronews.ca/Toronto/local/rss')] def print_version(self, url): baseurl='http://www.metronews.ca/ArticlePrint/' split1 = string.split(url,"/") xxx=split1 [6] split2= xxx[0:5] s = baseurl + split2 return s A url story would look like: "http://www.metronews.ca/toronto/local/article/587467--finally-someone-at-the-acc-does-well" But you can just have the 6 digit identifer. And the print equivalent would be: "http://www.metronews.ca/ArticlePrint/587467?language=en" But you only need the 6 digit identifer. At first I was adding the language bit, but when it wasn't working I removed it. I tried it as str.split and string.split. Can't see where else it's wrong. |
![]() |
![]() |
#2366 | |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 4,004
Karma: 177841
Join Date: Dec 2009
Device: WinMo: IPAQ; Android: HTC HD2, Archos 7o; Java:Gravity T
|
Quote:
split1 = url.split("/") instead of split1 = string.split(url,"/") Also, check that your results are correct with a print, as in: print 'split2 is: ', split2 right after you calc split2 |
|
![]() |
![]() |
#2367 |
Junior Member
![]() Posts: 1
Karma: 10
Join Date: Jul 2010
Device: Nook
|
Hiya -
If someone would have the time to create a recipe for the Arizona Republic (http://www.azcentral.com/rss/feeds/news.xml), I would be grateful. I've been trying to this myself, but after I get the idea of adding the feeds and adding the command "no_stylesheets = True", I don't understand what part of the article's/website's code does what to eliminate the unnecessary items or what commands eliminate which of these items. I'm not a programmer and CSS just passed me by (I only know basic HTML). I don't mind if someone privately shares with me what to look for so I can learn how to do the job myself. I've read the thread including the help documentation and it's like a foreign language to me - a flaw for sure. Anyway, if anyone has the free time, thanks in advance. I'll try to figure some of this out as well. |
![]() |
![]() |
#2368 | |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 4,004
Karma: 177841
Join Date: Dec 2009
Device: WinMo: IPAQ; Android: HTC HD2, Archos 7o; Java:Gravity T
|
Quote:
![]() First, get FireFox or confirm you're using it and install FireBug. (needed to spot the stuff you want to remove when cleaning it up). Second, post your current recipe (put Code then Spoiler tags around it). We'll go from there. |
|
![]() |
![]() |
#2369 | |
Connoisseur
![]() Posts: 51
Karma: 10
Join Date: Jul 2010
Device: colognesbook
|
Quote:
You also mentioned to try print to make sure it's chopping up correctly, well I tried in a python editor previously and it's chopping up the string as I expected. I'm just not passing it back properly. |
|
![]() |
![]() |
#2370 | ||
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 4,004
Karma: 177841
Join Date: Dec 2009
Device: WinMo: IPAQ; Android: HTC HD2, Archos 7o; Java:Gravity T
|
Quote:
Code:
import string Quote:
|
||
![]() |
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Custom column read ? | pchrist7 | Calibre | 2 | 10-04-2010 02:52 AM |
Archive for custom screensavers | sleeplessdave | Amazon Kindle | 1 | 07-07-2010 12:33 PM |
How to back up preferences and custom recipes? | greenapple | Calibre | 3 | 03-29-2010 05:08 AM |
Donations for Custom Recipes | ddavtian | Calibre | 5 | 01-23-2010 04:54 PM |
Help understanding custom recipes | andersent | Calibre | 0 | 12-17-2009 02:37 PM |