Git Product home page Git Product logo

Comments (3)

kevinhendricks avatar kevinhendricks commented on July 2, 2024

Any normal azw3/mobi even with drm has an unencrypted exth header where all the metadata is stored. See the DumpMobiHeader program for a python tool that will dump the metadata and the complete header as a text file you could collect and post process or modify the code yourself.

Sent from my iPad

On Aug 26, 2016, at 10:26 PM, vanabel [email protected] wrote:

Is it possible to extract metadata from mobi/azw3(non protected) files? It would be greate to return these metadata (author/title/category) as an array.


You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub, or mute the thread.

from kindleunpack.

vanabel avatar vanabel commented on July 2, 2024

Thanks, very useful, I find the link. But could you please help me again to show an example of how to get the title by php: I try to use

$fp = fopen('test.mobi', 'r');
echo fgets($fp,503);

it seems not work. I think there must be some end positon need be set. But how?

from kindleunpack.

kevinhendricks avatar kevinhendricks commented on July 2, 2024

Sorry but It is not simple. Please get the DumpMobiHeader python program from here and try to replicate what it does to find and read the exth section from each header record. Or alternatively, modify that python program to only dump the metadata and then use php to parse its text output.

from kindleunpack.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.