Skip to main content

Read data and metadata for fb2 files

Project description

Library Name: fb2reader

Description

fb2reader is a Python library designed for extracting data from FB2 format files. With this library, you can easily extract information about authors, titles, descriptions, covers, and the content of books in FB2 format. The library uses BeautifulSoup for XML parsing and provides convenient methods for working with the data.

Features

Extract book identifier. Extract book title. Extract book body and save it as an HTML file. Extract author information (first name and last name). Extract book series. Extract book language. Extract book description. Extract book genres. Extract translator information. Extract ISBN. Extract and save book cover.

Installation

You can install the library using pip:

pip install fb2reader

Usage Example

import fb2reader 
file_path = 'test.fb2'
book = fb2reader.fb2(file_path)

print(book.get_isbn())
print(book.get_title())

Requirements

Python 3.2+ BeautifulSoup4

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

fb2reader-1.0.2.tar.gz (6.8 kB view hashes)

Uploaded Source

Built Distribution

fb2reader-1.0.2-py3-none-any.whl (7.2 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page