Read it tululu.org without Internet
Project description
Save the category of site tululu.org offline
Description
The program downloads from tululu.org books in text format and their covers. The following information is also downloaded to the json file:
- title
- author
- image path
- book path
- comments
- genres
After downloading the necessary data, the offline version of the site will be generated (you can see an example here)
How to install
Install using pip:
pip install tululu-offline
How to use
tululu-offline [OPTIONS]
Options
- [category_url] - the category url tululu.org
- [--start_page] - which page to start downloading
- [--end_page] - on which page to finish downloading
- [--dest_folder] - path to the directory with parsing results: pictures, books, JSON.
- [--skip_txt] - do not download books
- [--skip_imgs] - do not download images
- [--json_path] - specify your path to *.json file with results
- [--number_of_books_per_page] - number of books per page
Example run
Run the script with the necessary parameters. For example:
tululu-offline http://tululu.org/l55/ --start_page 1 --end_page 3 --skip_txt true --skip_imgs true --number_of_books_per_page 15
The first page of the library will be available at pages/index1.html
License
Tululu-offline is licensed under the MIT License. See LICENSE for more information.
Project goal
The code is written for educational purposes in an online course for web developers dvmn.org.
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
tululu-offline-1.0.0.tar.gz
(7.1 kB
view hashes)
Built Distribution
Close
Hashes for tululu_offline-1.0.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 650eeb2e364c760509e52143c1165290d4fb24ad8e765be9682cdb59b6e87adc |
|
MD5 | b8e2af02af1f87a1d2e6173363b1fe72 |
|
BLAKE2b-256 | 4d7cb461ad119a22a4c4d3405a5d1cef8c6722dc6477025783ec70d3fe6c6b5f |