I use this for reading on my Kindle, that's why I use those "location" things.
To use the calculator in interactive mode, just run the bookLocations.py file
python bookLocations.py
python booklocations.py file locationsPerPage readingTimePerPage
where
file
is a text file containing the info of the books you want calulated.locationPerPage
is how many locations there are per page turn on the KindlereadingTimePerPage
is how fast you read one page on the kindle in seconds
So for example I would run
python booklocations.py books.txt 10 67
If you don't include locationPerPage
and readingTimePerPage
, you will be prompted. Set them to 1
if not important.
The output will be a text file in a subfolder called Calculated books
. You can change this in one of the first lines of the code.
- One book per line.
#
at start of line indicate comments.title;useLocation;totalPages;totalLocations;days
title
is the title of the bookuseLocation
is whether you're using locations from the kindle or pages. SetTrue
for location andFalse
for pages.totalPages
is the amount of pages that there would be in a printed version of the book. I get these from GoodReads.totalLocations
is the total amount of locations in the kindle book. If you're usinguseLocation
set toFalse
, just write thetotalPages
here.days
is the amount of days you'd like to complete the book in.
An example file is included.