A metadata plugin for fetching Metadata from the Fichub API for the fichub-cli
Project description
fichub-cli-metadata
A metadata plugin for fetching Metadata from the Fichub API for fichub-cli
To report issues upstream for the supported sites, visit https://fichub.net/#contact
To report issues for the plugin, open an issue at https://github.com/fichub-cli-contrib/fichub-cli-metadata/issues
To report issues for the CLI, open an issue at https://github.com/FicHub/fichub-cli/issues
Installation
Using pip (Recommended)
pip install -U fichub-cli-metadata
From Source (Might have bugs, for testing only)
pip install git+https://github.com/fichub-cli-contrib/fichub-cli-metadata@main
Usage
> fichub_cli metadata
Usage: fichub_cli metadata [OPTIONS] COMMAND [ARGS]...
A metadata plugin for fetching Metadata from the Fichub API for the fichub-cli
Options:
-i, --input TEXT Input: Either an URL or path to a file
--input-db TEXT Use an existing sqlite db
--update-db Self-Update existing db (--input-db required)
--export-db Export the existing db as json (--input-db
required)
--migrate-db Migrate to new db schema (--input-db required)
-o, --out-dir TEXT Path to the Output directory (default: Current
Directory)
--download-ebook TEXT Download the ebook as well. Specify the format:
epub (default), mobi, pdf or html
--fetch-urls TEXT Get all story urls found from a page. Currently
supports archiveofourown.org only
--force Force update the metadata
-d, --debug Show the log in the console for debugging
--log / --no-log Save the logfile for debugging [default: no-log]
--version / --no-version Display version & quit [default: no-version]
--help Show this message and exit.
Default Configuration
- The fanfiction will be downloaded in the current directory. To change it, use
-o
followed by the path to the directory. - Failed downloads will be saved in the
err.log
file in the current directory.
Check fichub_cli metadata --help
for more info.
Example
- To fetch metadata using an URL
fichub_cli metadata -i https://archiveofourown.org/works/10916730/chapters/24276864
- To fetch metadata using a file containing URLs
fichub_cli metadata -i urls.txt
- To choose a output directory
fichub_cli metadata -i urls.txt -o "~/Desktop/books"
- To save the metadata in an existing db
fichub_cli metadata -i urls.txt --input-db "urls - 2022-01-29 T000558.sqlite"
- To update an existing db from given input
fichub_cli metadata -i urls.txt --input-db "urls - 2022-01-29 T000558.sqlite" --force
- To self-update an existing db i.e. update each row from the db
fichub_cli metadata --input-db "urls - 2022-01-29 T000558.sqlite" --update-db
- To dump an existing db as a json
fichub_cli metadata --input-db "urls - 2022-01-29 T000558.sqlite" --export-db
- To migrate an existing db to the new schema
fichub_cli metadata --input-db "urls - 2022-01-29 T000558.sqlite" --migrate-db
- To download the ebook along with the metadata
fichub_cli metadata -i urls.txt --download-ebook epub
- To get all story urls found from a page. Currently supports archiveofourown.org only.
fichub_cli metadata --fetch-urls https://archiveofourown.org/users/flamethrower/
Links
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
fichub-cli-metadata-0.2.1.tar.gz
(16.0 kB
view hashes)
Built Distribution
Close
Hashes for fichub-cli-metadata-0.2.1.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | cb0fdd2ed53a3878cb449d8850ff51ae35fe7daab7e8319a3b4d443c0991a023 |
|
MD5 | 5420414a448146fa06df62a5713badb8 |
|
BLAKE2b-256 | d70abf0b7c3bc52b56e52f597b66ddb117f749418442f8f8de85abf889d696ac |
Close
Hashes for fichub_cli_metadata-0.2.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 04cf1f369b1fe2aae3514df3e50b29f1f62e1ba544a7b395fb5498be60d03f09 |
|
MD5 | a878ded284b5a50d6ed45411c72cf8a6 |
|
BLAKE2b-256 | 5bcb27f692a07a08185884d7cdb8b16eb1a344bfbfb2f618ff7216d6f62751ac |