stephenfmann / kindle-clippings Goto Github PK
View Code? Open in Web Editor NEWParse Kindle's "My Clippings.txt" into JSON
License: Creative Commons Zero v1.0 Universal
Parse Kindle's "My Clippings.txt" into JSON
License: Creative Commons Zero v1.0 Universal
[Originally posted by @kshitij-official]
Hey Stephan! Thanks for the script, exactly what I was looking for.
Issue: Not sure why but the output.json file is turning out to be blank.(PFA)
Originally posted by @kshitij-official in #2 (comment)
It is desirable to collate quotes from sources other than the Kindle.
This script should combine quotes from the Kindle with a manually created quotes file. The manually created file should be in the same format.
Invoke with -c <filepath.json>
Kindle books sometimes have incorrect metadata. This script should be able to substitute incorrect titles and authors with the correct ones, by referring to a manually maintained JSON file.
For example, my copy of Seeing by José Saramago has the author "Batchie" and title "Jose_Saramago_Seeing__". I therefore need to create an external file which says that this entry should have its author substituted for "José Saramago" and title substituted for "Seeing". This could be done with a JSON file e.g.:
[ { "author_old":"Batchie", "title_old":"Jose_Saramago_Seeing__", "author_new": "José Saramago", "title_new":"Seeing" } ]
Both items must be matched for the substitution to take place. There may be other entries with the aberrant author "Batchie", and those should not be changed to José Saramago.
Include timezone offset: source files "My Clippings.txt" does not include a timezone. We could default to the user's system time zone. This is configurable by changing the TZ environment variable.
Suggested as a consequence of pull request #3.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.