Skip to content

example 1 - fix #16

@tbeertje21

Description

@tbeertje21

Example 1 does not work (anymore).

from ebookatty import fetch_metadata
file_path = "Romeo and Juliet - William Shakespeare.mobi"
data = fetch_metadata(file_path)
This gives this error:
from ebookatty import fetch_metadata
ImportError: cannot import name 'fetch_metadata' from 'ebookatty' (C:\ProgramData\anaconda3\lib\site-packages\ebookatty_init_.py)

Borrowing from the clip.py script, I use this for a working test from python:

from ebookatty import MetadataFetcher
file_path = "Romeo and Juliet - William Shakespeare.mobi"
fetcher = MetadataFetcher(file_path)
data = fetcher.get_metadata()

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions