ReadingListReader
ReadingListReader copied to clipboard
Research what's new w/Reading List on OS X "Mavericks"
I've no idea what changes are in store for Reading List in the next version of OS X. Please recall that readinglistlib is totally unsupported and works by reading undocumented files and is therefore likely to break with any OS update.
Ideally, "Mavericks" will include a proper [scriptable] read/write/delete Reading List API, dismissing the need for a hack like this altogether.
Please share any issues with ReadingListReader and "Mavericks" here, as I haven't had a chance to test them together yet.
Not shure if this belongs here: I just downloaded the files and run python readinglist2html.py which worked fine. But
sandras-macbook-pro:ReadingListReader-master Guest$ python readinglistreader.py
gave me
Traceback (most recent call last):
File "readinglistreader.py", line 39, in <module>
dateformat = args.timestamp)
File "/Users/Guest/Desktop/ReadingListReader-master/readinglistlib/readinglistlib.py", line 85, in read
articles = map(self.formatDates, articles, [dateformat for i in range(len(articles))])
File "/Users/Guest/Desktop/ReadingListReader-master/readinglistlib/readinglistlib.py", line 105, in formatDates
article['date'] = article['date'].strftime(dateformat)
ValueError: year=1 is before 1900; the datetime strftime() methods require year >= 1900
This is reproducable. I am on OS X Mavericks. Perhaps it helps. Thanks for your great program, it really made my life easier.
Hi! Thanks for your feedback.
Based on the last few lines of that error, it looks like the program is running into some weird values in the article timestamps, which readinglistreader tries to reformat for display. I am not sure if this is due to issues or changes with Python, Reading List, or even your system clock. (Apologies, I am not running Mavericks myself.)
As a workaround, you might try python readinglistready.py --timestamp "" to prevent reformatting the timestamps.
This suggested workaround didn't fix the problem. I commented out lines 84 & 85 in readinglistlib.py
if None != dateformat: articles = map(self.formatDates, articles, [dateformat for i in range(len(articles))])
and was once again able to export my reading list to send to pinboard.