khinsider.py
This is a modified version of khinisder.py with an explicit focus of being easy to upload to and install from PyPI. Please go support the original release: https://github.com/obskyr/khinsider
khinsider.py is a Python interface for getting khinsider soundtracks. It makes khinsider mass downloads a breeze. It's easy to use - check it!
From the command line:
khinsider.py jumping-flash
As an import:
import khinsider
khinsider.download('jumping-flash')
# And bam, you've got the Jumping Flash soundtrack!
For anime music, check out thehylia.py.
Carefully put together by @obskyr!
Download it here!
Usage
Just run khinsider.py from the command line with the sole parameter being the soundtrack you want to download. You can either use the soundtrack's ID, or simply copy its entire URL. Easy!
If you want, you can also add another parameter as the output folder, but that's optional.
You can also download other file formats (if available), like FLAC or OGG, as following:
khinsider.py --format flac mother-3
If you don't want to go to the actual site to look for soundtracks, you can also just type a search term as the first parameter(s), and provided it's not a valid soundtrack, khinsider.py will give you a list of soundtracks matching that term.
You're going to need Python (if you don't know which version to get, choose the latest version of Python 3 - khinsider.py works with both 2 and 3), so install that (and add it to your path) if you haven't already.
You will also need to have pip installed (if you have Python 3, it is most likely already installed - otherwise, download get-pip.py and run it) if you don't already have requests and Beautiful Soup 4. The first time khinsider.py runs, it will install these two for you.
For more detailed information, try running khinsider.py --help!
As a module
khinsider.py requires two non-standard modules: requests and beautifulsoup4. Just run a pip install on them (with pip), or just run khinsider.py on its own once and it'll install them for you.
Here are the main functions you will be using:
khinsider.download(soundtrackName[, path="", makeDirs=True, formatOrder=None, verbose=False])
Download the soundtrack soundtrackName. This should be the name the soundtrack uses at the end of its album URL.
If path is specified, the soundtrack files will be downloaded to the directory that path points to.
If makeDirs is True, the directory will be created if it doesn't exist.
You can specify formatOrder to download soundtracks in specific formats. formatOrder=['flac', 'mp3'], for example, will download FLACs if available, and MP3s if not.
If verbose is True, it will print progress as it is downloading.
khinsider.search(term)
Search khinsider for term. Return a list of Soundtracks matching the search term. You can then access soundtrack.id or soundtrack.url.
More
There's a lot more detail to the API - more than would be sensible to write here. If you want to use khinsider.py as a module in a more advanced capacity, have a look at the Soundtrack, Song, and File objects in the source code! They're documented properly there for your reading pleasure.
Talk to me!
You can easily get to me in these ways:
I'd love to hear it if you like khinsider.py! If there's a problem, or you'd like a new feature, submit an issue here on GitHub.
Metadata
Release files for khinsider 1.0.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| khinsider-1.0.0.tar.gz | 10.0 kB | Without provenance | Details for khinsider-1.0.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| khinsider-1.0.0-py3-none-any.whl | Python 3 | none | any | Details for khinsider-1.0.0-py3-none-any.whl |
Total release size: 20.2 kB
Release files / khinsider-1.0.0.tar.gz
| Download URL | khinsider-1.0.0.tar.gz |
|---|---|
| Size | 10.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
21c8467ea6113f8c051c3c136893e00e0ac087be1d11170e0b5f3c6eb9bf0378
|
|
BLAKE2b-256 checksum How to use checksums |
4962e9dfe15cce6f20669f47664015374df7fa848e88c9ada8eaf4044005924c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.1.11 CPython/3.8.10 Linux/5.4.0-89-generic
|
Release files / khinsider-1.0.0-py3-none-any.whl
| Download URL | khinsider-1.0.0-py3-none-any.whl |
|---|---|
| Size | 10.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
991b8b7d52987e013e945a4f34c631da512efaace9d4a3b8841cca909ab15a6b
|
|
BLAKE2b-256 checksum How to use checksums |
27bedee73cc04944122366ac3d7e61f106aace56849c0a7b9fdce7f2aa074e66
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.1.11 CPython/3.8.10 Linux/5.4.0-89-generic
|
Security for khinsider 1.0.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.