Metadata-Version: 2.4
Name: ibuk-dl-uam
Version: 0.3
Summary: ownload books from libra.ibuk.pl, updated and modified for UAM Poznan auth system support
Author: Maji, Ignacy Sewastianowicz
Author-email: Maji <support@mizuena.rocks>, Ignacy Sewastianowicz <szpiren@gmail.com>
License-Expression: MIT
License-File: LICENSE
Classifier: Programming Language :: Python :: 3
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Classifier: Intended Audience :: End Users/Desktop
Requires-Dist: aiohttp>=3.13.1
Requires-Dist: beautifulsoup4
Requires-Dist: bs4>=0.0.2
Requires-Dist: requests
Requires-Dist: websockets
Requires-Python: >=3.13
Description-Content-Type: text/markdown

# IBUK Downloader

This script allows you to download books from the libra.ibuk.pl website and query book information from a given URL.

## Features

- Download books from libra.ibuk.pl.
- Query book information, including author, title, description, publisher, ISBN, pages, and index.
- Support for UAM (Uniwersytet Adama Miczkiewicza) authentication to access restricted content.

## Installation

```shell
pip install ibuk_dl_uam
```

## Usage

### Download a Book

To download a book, use the following command:

```shell
ibuk-dl download <URL>
```

You can specify the page count with the `--page-count` option (if not specified, will download every page) and the
output file with the `-o` or `--output` option. Use `-` as the output to print the book content to stdout. Add -v to
print progress information to the console.

If the book is behind HAN authentication, you can provide your username and password with the `-u` and `-p` options,
respectively.

Example:

```shell
ibuk-dl -v download --output "podstawy-teorii-obwodow-tom-2.html" -u 123123 -p password https://han.amu.edu.pl/han/ibuk-libra/https/libra.ibuk.pl/reader/podstawy-teorii-obwodow-tom-2-jerzy-osiowski-jerzy-szabatin-234596
```

More information about `download`:

```shell
ibuk-dl download --help
```

### Query Book Information

To query book information, use the following command:

```shell
ibuk-dl query <URL>
```

Example:

```shell
ibuk-dl -v query https://libra.ibuk.pl/reader/podstawy-teorii-obwodow-tom-2-jerzy-osiowski-jerzy-szabatin-234596
```

More information about `query`:

```shell
ibuk-dl query --help
```

## Export to PDF

This script will output HTML. If you want to have a PDF, you can use your browser's `Print -> Save to PDF` option.

## License

This script is provided under a MIT License. See [LICENSE](/LICENSE)

## Disclaimer

As stated in the license, I am not responsible for damage caused by the use of this program. Please respect the terms of
use of the libra.ibuk.pl website and any copyright or licensing agreements for the downloaded content. Downloading
and/or sharing copyrighted content may be considered illegal in your country.
