Skip to content

jonathangreen/download-opds

Repository files navigation

download_opds.py

About

This script downloads an OPDS 2 feed and saves it to a file. The script will crawl the feed and download all the entries. It will either output all the entries as a large JSON file, or flatten the json and output a CSV file.

Installation

This script requires Python 3.9 or later and https://python-poetry.org/.

If you don't have these requirements, and are using OSX, you can install them with Homebrew.

brew install pyenv
brew install poetry

Once you have the requirements, you can install the dependencies with:

poetry install

Usage (download_opds.py)

usage: download_opds [-h] [-u USERNAME] [-p PASSWORD] [-c] url output_file

Download OPDS 2 feed

positional arguments:
  url                   URL of feed
  output_file           Output file

optional arguments:
  -h, --help            show this help message and exit
  -u USERNAME, --username USERNAME
                        Username
  -p PASSWORD, --password PASSWORD
                        Password
  -c, --csv             Output CSV file

Usage (download_axis.py)

usage: download_axis [-h] -u USERNAME -p PASSWORD -l LIBRARY_ID [-j] output_file

Download B&T Axis 360 feed

positional arguments:
  output_file           Output file

optional arguments:
  -h, --help            show this help message and exit
  -u USERNAME, --username USERNAME
                        Username
  -p PASSWORD, --password PASSWORD
                        Password
  -l LIBRARY_ID, --library-id LIBRARY_ID
                        Library ID
  -j, --json            Output JSON file

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages