# 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:
``` cmd
pip install fb2reader
```
## Usage Example
``` python
import fb2reader
file_path = 'test.fb2'
book = fb2reader.fb2(file_path)
print(book.get_isbn())
print(book.get_title())
```
### Requirements
Python 3.2+
BeautifulSoup4
Raw data
{
"_id": null,
"home_page": "https://github.com/devpilgrin/fb2reader",
"name": "fb2reader",
"maintainer": null,
"docs_url": null,
"requires_python": null,
"maintainer_email": null,
"keywords": "ebook, metadata, fb2",
"author": "Roman Kudryavskyi",
"author_email": "devpilgrim@gmail.com",
"download_url": "https://files.pythonhosted.org/packages/bc/0a/1371029d664d2e0ed7c7bc4b230b04baf6fdde96b27f6107ad4f384184c6/fb2reader-1.0.3.tar.gz",
"platform": null,
"description": "# Library Name: fb2reader\n## Description\nfb2reader 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.\n## Features\nExtract book identifier.\nExtract book title.\nExtract book body and save it as an HTML file.\nExtract author information (first name and last name).\nExtract book series.\nExtract book language.\nExtract book description.\nExtract book genres.\nExtract translator information.\nExtract ISBN.\nExtract and save book cover.\n\n## Installation\nYou can install the library using pip:\n\n``` cmd\npip install fb2reader\n```\n\n## Usage Example\n\n``` python\n\nimport fb2reader \nfile_path = 'test.fb2'\nbook = fb2reader.fb2(file_path)\n\nprint(book.get_isbn())\nprint(book.get_title())\n```\n\n### Requirements\nPython 3.2+\nBeautifulSoup4\n",
"bugtrack_url": null,
"license": "Apache-2.0 license",
"summary": "Read data and metadata for fb2 files",
"version": "1.0.3",
"project_urls": {
"Homepage": "https://github.com/devpilgrin/fb2reader"
},
"split_keywords": [
"ebook",
" metadata",
" fb2"
],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "9c17d355c8f35bb431ab52adc6ade77e5a240c97e54fd3715e77c6d64631a0b7",
"md5": "21eba16786da76ab6df0c03c8252b2cb",
"sha256": "6d3655294e473670c00347a500baad4b92c845442d9c4e09ce8896f40e2056fc"
},
"downloads": -1,
"filename": "fb2reader-1.0.3-py3-none-any.whl",
"has_sig": false,
"md5_digest": "21eba16786da76ab6df0c03c8252b2cb",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": null,
"size": 7213,
"upload_time": "2024-06-12T05:32:55",
"upload_time_iso_8601": "2024-06-12T05:32:55.298801Z",
"url": "https://files.pythonhosted.org/packages/9c/17/d355c8f35bb431ab52adc6ade77e5a240c97e54fd3715e77c6d64631a0b7/fb2reader-1.0.3-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "bc0a1371029d664d2e0ed7c7bc4b230b04baf6fdde96b27f6107ad4f384184c6",
"md5": "35d42399f4e88e5dfebfab87545a5685",
"sha256": "3dee0be353888019313c38313964dc3ea3c17ea26b06180fb9a0259941179214"
},
"downloads": -1,
"filename": "fb2reader-1.0.3.tar.gz",
"has_sig": false,
"md5_digest": "35d42399f4e88e5dfebfab87545a5685",
"packagetype": "sdist",
"python_version": "source",
"requires_python": null,
"size": 6816,
"upload_time": "2024-06-12T05:32:56",
"upload_time_iso_8601": "2024-06-12T05:32:56.671799Z",
"url": "https://files.pythonhosted.org/packages/bc/0a/1371029d664d2e0ed7c7bc4b230b04baf6fdde96b27f6107ad4f384184c6/fb2reader-1.0.3.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2024-06-12 05:32:56",
"github": true,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"github_user": "devpilgrin",
"github_project": "fb2reader",
"travis_ci": false,
"coveralls": false,
"github_actions": true,
"lcname": "fb2reader"
}