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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file fb2reader-1.0.3.tar.gz
.
File metadata
- Download URL: fb2reader-1.0.3.tar.gz
- Upload date:
- Size: 6.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.0 CPython/3.11.9
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3dee0be353888019313c38313964dc3ea3c17ea26b06180fb9a0259941179214 |
|
MD5 | 35d42399f4e88e5dfebfab87545a5685 |
|
BLAKE2b-256 | bc0a1371029d664d2e0ed7c7bc4b230b04baf6fdde96b27f6107ad4f384184c6 |
File details
Details for the file fb2reader-1.0.3-py3-none-any.whl
.
File metadata
- Download URL: fb2reader-1.0.3-py3-none-any.whl
- Upload date:
- Size: 7.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.0 CPython/3.11.9
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6d3655294e473670c00347a500baad4b92c845442d9c4e09ce8896f40e2056fc |
|
MD5 | 21eba16786da76ab6df0c03c8252b2cb |
|
BLAKE2b-256 | 9c17d355c8f35bb431ab52adc6ade77e5a240c97e54fd3715e77c6d64631a0b7 |