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 02-09-2012, 12:14 AM   #1
anoved
Enthusiast
anoved ought to be getting tired of karma fortunes by now.anoved ought to be getting tired of karma fortunes by now.anoved ought to be getting tired of karma fortunes by now.anoved ought to be getting tired of karma fortunes by now.anoved ought to be getting tired of karma fortunes by now.anoved ought to be getting tired of karma fortunes by now.anoved ought to be getting tired of karma fortunes by now.anoved ought to be getting tired of karma fortunes by now.anoved ought to be getting tired of karma fortunes by now.anoved ought to be getting tired of karma fortunes by now.anoved ought to be getting tired of karma fortunes by now.
 
anoved's Avatar
 
Posts: 41
Karma: 1005240
Join Date: Feb 2012
Device: Kindle Keyboard, iPhone
Recipe for Safari "Reading List" unread items

Hi!

I'd like to share another recipe. This one is a little peculiar. Instead of fetching a list of articles from an RSS feed or a web page, it uses the list of unread items in Safari's "Reading List." It is therefore compatible only with Mac OS X (and probably just 10.7).

(Reading List basically helps you bookmark articles you want to read later. It's bit like Instapaper, but not as sophisticated, and built into the browser. It can sync across computers and iOS devices using iCloud.)

The recipe and more details are available at GitHub:
https://github.com/anoved/Safari-Reading-List-Recipe

Please be sure to read the "Limitations" section of the Readme so that you understand what this recipe does and does not do. It's basically a proof-of-concept. Feedback is of course encouraged!

Thanks,
Jim
anoved is offline   Reply With Quote
Old 02-09-2012, 12:46 AM   #2
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
Posts: 43,838
Karma: 22666666
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
You can use the python standard library module plistlib rather than plutil.
kovidgoyal is online now   Reply With Quote
Advert
Old 02-09-2012, 09:20 AM   #3
anoved
Enthusiast
anoved ought to be getting tired of karma fortunes by now.anoved ought to be getting tired of karma fortunes by now.anoved ought to be getting tired of karma fortunes by now.anoved ought to be getting tired of karma fortunes by now.anoved ought to be getting tired of karma fortunes by now.anoved ought to be getting tired of karma fortunes by now.anoved ought to be getting tired of karma fortunes by now.anoved ought to be getting tired of karma fortunes by now.anoved ought to be getting tired of karma fortunes by now.anoved ought to be getting tired of karma fortunes by now.anoved ought to be getting tired of karma fortunes by now.
 
anoved's Avatar
 
Posts: 41
Karma: 1005240
Join Date: Feb 2012
Device: Kindle Keyboard, iPhone
Thanks for the tip. As a Python rookie, I did not even know about plistlib.

plutil is still needed because the Safari bookmarks file is stored in the binary property list format, which plistlib can't read. However, I can use plistlib to parse the XML output by plutil. Doing so certainly looks more straightforward than [ab]using BeautifulSoup for the job, so I will revise the recipe to use plistlib.
anoved is offline   Reply With Quote
Old 02-09-2012, 10:35 AM   #4
anoved
Enthusiast
anoved ought to be getting tired of karma fortunes by now.anoved ought to be getting tired of karma fortunes by now.anoved ought to be getting tired of karma fortunes by now.anoved ought to be getting tired of karma fortunes by now.anoved ought to be getting tired of karma fortunes by now.anoved ought to be getting tired of karma fortunes by now.anoved ought to be getting tired of karma fortunes by now.anoved ought to be getting tired of karma fortunes by now.anoved ought to be getting tired of karma fortunes by now.anoved ought to be getting tired of karma fortunes by now.anoved ought to be getting tired of karma fortunes by now.
 
anoved's Avatar
 
Posts: 41
Karma: 1005240
Join Date: Feb 2012
Device: Kindle Keyboard, iPhone
OK, I have updated the recipe to use plistlib. It is more concise.
https://github.com/anoved/Safari-Reading-List-Recipe

I am curious to hear usage feedback from anyone who uses Reading List regularly.
anoved is offline   Reply With Quote
Old 02-09-2012, 05:40 PM   #5
anoved
Enthusiast
anoved ought to be getting tired of karma fortunes by now.anoved ought to be getting tired of karma fortunes by now.anoved ought to be getting tired of karma fortunes by now.anoved ought to be getting tired of karma fortunes by now.anoved ought to be getting tired of karma fortunes by now.anoved ought to be getting tired of karma fortunes by now.anoved ought to be getting tired of karma fortunes by now.anoved ought to be getting tired of karma fortunes by now.anoved ought to be getting tired of karma fortunes by now.anoved ought to be getting tired of karma fortunes by now.anoved ought to be getting tired of karma fortunes by now.
 
anoved's Avatar
 
Posts: 41
Karma: 1005240
Join Date: Feb 2012
Device: Kindle Keyboard, iPhone
FWIW, I've posted a more user-friendly guide to this recipe at my blog:
http://anoved.net/2012/02/ebook-reci...-reading-list/

Due to the Mac OS X-specific nature of this recipe and its reliance on other software, I don't expect it is appropriate to include in Calibre - but I hope it useful to someone!
anoved is offline   Reply With Quote
Advert
Old 02-16-2012, 02:50 PM   #6
anoved
Enthusiast
anoved ought to be getting tired of karma fortunes by now.anoved ought to be getting tired of karma fortunes by now.anoved ought to be getting tired of karma fortunes by now.anoved ought to be getting tired of karma fortunes by now.anoved ought to be getting tired of karma fortunes by now.anoved ought to be getting tired of karma fortunes by now.anoved ought to be getting tired of karma fortunes by now.anoved ought to be getting tired of karma fortunes by now.anoved ought to be getting tired of karma fortunes by now.anoved ought to be getting tired of karma fortunes by now.anoved ought to be getting tired of karma fortunes by now.
 
anoved's Avatar
 
Posts: 41
Karma: 1005240
Join Date: Feb 2012
Device: Kindle Keyboard, iPhone
One more related follow-up: I've written a standalone script, derived from this recipe, to report the contents of Reading List. Might be useful for anyone interested in integrating Reading List bookmarks with other services. https://github.com/anoved/ReadingListReader
anoved is offline   Reply With Quote
Old 03-19-2013, 01:21 PM   #7
anoved
Enthusiast
anoved ought to be getting tired of karma fortunes by now.anoved ought to be getting tired of karma fortunes by now.anoved ought to be getting tired of karma fortunes by now.anoved ought to be getting tired of karma fortunes by now.anoved ought to be getting tired of karma fortunes by now.anoved ought to be getting tired of karma fortunes by now.anoved ought to be getting tired of karma fortunes by now.anoved ought to be getting tired of karma fortunes by now.anoved ought to be getting tired of karma fortunes by now.anoved ought to be getting tired of karma fortunes by now.anoved ought to be getting tired of karma fortunes by now.
 
anoved's Avatar
 
Posts: 41
Karma: 1005240
Join Date: Feb 2012
Device: Kindle Keyboard, iPhone
Just a heads-up for anyone who happens to use this recipe: I am aware of a compatibility problem with Mac OS X 10.8.3 (the format of the bookmarks file that stores Reading List items has changed slightly).

Update: I'm not sure if the problem was actually introduced in 10.8.3 or if it was simply a circumstance I hadn't encountered before, but in either case, I've update the recipe with a fix. (Basically, the reading list bookmark's date can be found in two places, but I was only looking in one place; now I check both if necessary.) https://github.com/anoved/Safari-Reading-List-Recipe

Last edited by anoved; 03-20-2013 at 07:50 PM. Reason: Updated to mention the recipe is now fixed
anoved is offline   Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Help cleaning up "reading" list covingtoncat73 Kobo Reader 18 12-14-2011 08:11 AM
Cant remove items from "Im Reading" list fictionaddiction Kobo Reader 1 06-21-2011 12:11 PM
Removing Items from "I'm Reading" sunami88 Kobo Reader 10 12-19-2010 01:39 PM
How to remove "Fully read" books from "Last Open" list? pjeanetta PocketBook 4 12-08-2010 10:30 AM
"I'm reading" list removal and syncing SeptemberWasp Kobo Reader 15 09-05-2010 07:56 AM


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


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