|
|
Thread Tools | Search this Thread |
01-09-2010, 11:59 AM | #1 |
Zealot
Posts: 126
Karma: 1826
Join Date: Jan 2010
Device: Kindle 2
|
Google Reader Recipe hack - Download all unread insted of just starred
Hi everyone, I have been searching for a few hours and couldnt find a fix for the 'google reader shows only starred'
Finally I decided to get my hands dirty and read the Google Reader API documentation however I am new to caliber and dont know python at all but (being a .net dev) was able to make a simple modification that helped some what. here is the recipe without further ado Google Reader: This recipe fetches from your Google Reader account unread Starred items and unread Feeds you have placed in a folder via the manage subscriptions feature. Spoiler:
Google Reader uber: Fetches all feeds from your Google Reader account including the uncategorized items. Spoiler:
For a more detailed comparison see this thread. Thanks @dwanthny. Notes: Spoiler:
----------------------------------------------------------------------- Update Recipe (14/07/10): Both recipes have been updated to work with the changed authentication method in Google Reader API. Thanks to Starson17. . Last edited by rollercoaster; 07-14-2010 at 11:45 PM. Reason: The recipe has been updated |
01-09-2010, 12:13 PM | #2 |
creator of calibre
Posts: 44,346
Karma: 23661992
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
Looks fine. I don;t use greader myself, so I can't test it. But if it seems stable to you for a few days, let me know and I'll add it to calibre.
|
Advert | |
|
01-12-2010, 07:09 AM | #3 |
Zealot
Posts: 126
Karma: 1826
Join Date: Jan 2010
Device: Kindle 2
|
thanks for replying.. I will use it for few days and give feedback
|
01-14-2010, 07:12 AM | #4 |
Zealot
Posts: 126
Karma: 1826
Join Date: Jan 2010
Device: Kindle 2
|
The recipe is not downloading entries older then a week. Is that a forced limitation in caliber? The fetching url itself does download those entries when used directly in the browser.
If yes can it be overridden via the recipe as unread posts from google reader can be any amount of old. specially for 'starred' etc items |
01-14-2010, 11:14 AM | #5 |
creator of calibre
Posts: 44,346
Karma: 23661992
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
Use the oldest_article setting in the recipe
|
Advert | |
|
01-15-2010, 07:49 AM | #6 |
Zealot
Posts: 126
Karma: 1826
Join Date: Jan 2010
Device: Kindle 2
|
great! that works perfectly. Kovid you have made a great thing this caliber
Now just sync once a day and have all my fav blogs on kindle! now only if wireless delivery was free in india... one can dream right? ---- Next modification - I was thinking to mark downloaded posts as read so that one doesnt have to go to google reader and mark as read manually. otherwise they will get download each time. Any Ideas how to plug into a 'feed item downloaded' kind of event so that I can make the right API call to google reader to mark the said item as read? |
01-15-2010, 11:01 AM | #7 |
creator of calibre
Posts: 44,346
Karma: 23661992
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
Override the article_downloaded method. Just call the base class method first and then do watever is needed.
|
01-17-2010, 01:33 AM | #8 | |
US Navy, Retired
Posts: 9,865
Karma: 13806776
Join Date: Feb 2009
Location: North Carolina
Device: Icarus Illumina XL HD, Nexus 7
|
Quote:
The last time I tried the Google reader recipe I was only able to get the last 10 posts in one blog. Even though I tagged 30 only 10 would come through. I finally gave up. This is working great! **You just need to change the description from tagged to all unread. Kovid you should include this in the standard set a recipes along side the other Google Reader recipe. |
|
01-20-2010, 11:14 PM | #9 | |
Zealot
Posts: 126
Karma: 1826
Join Date: Jan 2010
Device: Kindle 2
|
Quote:
@dwanthny you are welcome and I fixed the description.. I always seem to miss the comments on what ever code i write :P can anyone link me to a *very* short python tutorial/book please? Last edited by rollercoaster; 01-20-2010 at 11:24 PM. |
|
02-09-2010, 08:27 AM | #10 |
Junior Member
Posts: 5
Karma: 10
Join Date: Feb 2010
Device: Kindle 2
|
Hi,
I've been looking for something just like this for a while, and am so glad to find. However i can't get it to work, is there some simple mistake I'm making? I've tried copying and pasting the code into a blank recipe, but i get an error (I'll happily post the specific error if people like). Is there somewhere I should be enterring my username and password? (I tried a couple of spots that looked logical to no avail) or is there something else altogether that I'm missing? Thanks very much for a great recipe! |
02-09-2010, 08:47 AM | #11 |
Junior Member
Posts: 5
Karma: 10
Join Date: Feb 2010
Device: Kindle 2
|
ignore that, I've figured it out.
My apologies. |
02-09-2010, 11:48 PM | #12 |
US Navy, Retired
Posts: 9,865
Karma: 13806776
Join Date: Feb 2009
Location: North Carolina
Device: Icarus Illumina XL HD, Nexus 7
|
|
03-17-2010, 05:05 AM | #13 | |
Zealot
Posts: 126
Karma: 1826
Join Date: Jan 2010
Device: Kindle 2
|
Quote:
What i need to do is: Override article_downloaded(<params???>) and
is article_downloaded() called once or once per feed or once per entry? also how to I write to the log so I can do some debugging etc.. sorry if I am frustrating u. I dont really know python and just read an overview of the syntax. thanks in advance Last edited by rollercoaster; 03-17-2010 at 05:47 AM. |
|
06-23-2010, 05:28 AM | #14 |
Junior Member
Posts: 3
Karma: 10
Join Date: Jun 2010
Location: Melbourne
Device: Nook touch
|
Error :(
Hi there community. Just got my BeBook Neo yesterday and came across this calibre software today... fantastic idea. Have sort out most of the news feeds I want and read regularily, which is great! Now I just want my blogs on there..... Tried these two Google Reader ones, this and a number of combinations, but I am getting an error Was hoping someone could help me out on here?? Thanks C Error ---- InputFormatPlugin: Recipe Input running Python function terminated unexpectedly (Error Code: 1) Traceback (most recent call last): File "site.py", line 103, in main File "site.py", line 85, in run_entry_point File "site-packages\calibre\utils\ipc\worker.py", line 99, in main File "site-packages\calibre\gui2\convert\gui_conversion.py", line 24, in gui_convert File "site-packages\calibre\ebooks\conversion\plumber.py", line 815, in run File "site-packages\calibre\customize\conversion.py", line 211, in __call__ File "site-packages\calibre\web\feeds\input.py", line 104, in convert File "site-packages\calibre\web\feeds\news.py", line 702, in download File "site-packages\calibre\web\feeds\news.py", line 856, in build_index File "site-packages\calibre\web\feeds\news.py", line 1301, in parse_feeds File "c:\users\user\appdata\local\temp\calibre_0.7.4_kp y1dw_recipes\recipe0.py", line 35, in get_feeds soup = self.index_to_soup('http://www.google.com/reader/api/0/tag/list') File "site-packages\calibre\web\feeds\news.py", line 474, in index_to_soup File "site-packages\mechanize-0.1.11-py2.6.egg\mechanize\_opener.py", line 202, in open File "site-packages\mechanize-0.1.11-py2.6.egg\mechanize\_http.py", line 612, in http_response File "site-packages\mechanize-0.1.11-py2.6.egg\mechanize\_opener.py", line 225, in error File "urllib2.py", line 367, in _call_chain File "site-packages\mechanize-0.1.11-py2.6.egg\mechanize\_http.py", line 633, in http_error_default urllib2.HTTPError: HTTP Error 401: Unauthorized |
06-23-2010, 01:23 PM | #15 |
US Navy, Retired
Posts: 9,865
Karma: 13806776
Join Date: Feb 2009
Location: North Carolina
Device: Icarus Illumina XL HD, Nexus 7
|
|
Tags |
google reader, google reader uber, hack, recpie |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Google Reader recipe not working :( | techie_007 | Calibre | 1 | 01-26-2010 09:58 PM |
Tagging and deleting for Google Reader Recipe | jomaweb | Calibre | 14 | 01-26-2010 11:31 AM |
Recipe Google Reader vs Google Reader Uber | DoctorOhh | Calibre | 0 | 01-26-2010 04:37 AM |
Google Uber Recipe takes so much time | jomaweb | Calibre | 1 | 01-26-2010 03:21 AM |
Read O'Reilly Hacks Series books using Google hack | Brian | Lounge | 12 | 02-19-2009 03:17 PM |