Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

44 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Bookkeeper

A to extract metadata and pages from your books in various formats

Feature .cbr .cbz .cb7 .cbt .pdf .epub .mobi
Get info ✅¹ ✅¹ ✅¹ ✅¹
Extract pages - -
Extract Cover
  1. Also supports ComicInfo.xml version 1, 2, and 2.1

Commands

bookkeeper scan <folder>

Scan for comic books in the folder, recursively. Each book file found will be reported as a one-line JSON entry.

Warning

Partially implemented, missing some formats and extraction of ComicInfo.xml

❯ ./bookkeeper scan fixtures
Scanning: .../fixtures
{"path":"Full of Fun/Full_Of_Fun_001__c2c___1957___ABPC_.cbr","status":"success","size":15666637,"hash":"","book":{"title":"Full_Of_Fun_001__c2c___1957___ABPC_","pages":36}}
{"path":"Full of Fun/Full_of_Fun_001__Decker_Pub._1957.08__c2c___soothsayr_Yoc.cbz","status":"success","size":44292901,"hash":"","book":{"title":"Full_of_Fun_001__Decker_Pub._1957.08__c2c___soothsayr_Yoc","pages":37}}
{"path":"testfile.pdf","status":"success","size":6012,"hash":"","book":{"title":"Title of the Book","pages":1,"authors":["The Author"],"keywords":["book","fantasy"]}}
Scanned all files

bookeeper extract <book> <extractTo>

Extract all pages to a folder, will also create a pages.json to list all pages

 ./bookkeeper extract fixtures/Full\ of\ Fun/Full_Of_Fun_001__c2c___1957___ABPC_.cbr out
Extraction complete. 36 files extracted to .../out
{
  "pages": [
    {
      "path": "Full Of Fun 001 (c2c) (1957) (ABPC)/FullF101.jpg",
      "width": 1075,
      "height": 1528
    },
    {
      "path": "Full Of Fun 001 (c2c) (1957) (ABPC)/FullF102.jpg",
      "width": 967,
      "height": 1462
    },
    {
      "path": "Full Of Fun 001 (c2c) (1957) (ABPC)/FullF103.jpg",
      "width": 964,
      "height": 1405
    },
    ...

bookeeper extractCover <book> <extractTo>.<format>

Allows to extract the cover from a book.

Warning

Not implemented yet

About

A tool to extract information from comic books

Resources

Stars

Watchers

Forks

Releases

Packages

Used by

Contributors

Languages