Archived
This project has been archived by its maintainers, and is no longer receiving any updates.
Nekosama
This is a python package for using with the NekoSama anime website.
pip install nekosama
CLI Usage
This package can be used as a CLI tool.
$ python -m nekosama -h
usage: nekosama [-h] -i INPUT [-e EPISODES] [-o OUTPUT] [-q {1080p,720p,480p}]
options:
--input INPUT An anime URL
--episodes EPISODES List or range or episodes indexes (e.g. 0-5 or 1,2,3)
--output OUTPUT Output directory
--quality {1080p,720p,480p} Video quality
Examples:
$ nekosama -i <url> # Download a whole anime
$ nekosama -i <url> -q 480p # Download in worst quality
$ nekosama -i <url> -e 1 # Download the first episode of an anime
$ nekosama -i <url> -e 1-8 # Download episodes 1 to 8 (included)
$ nekosama -i <url> -e 1,4,9 # Download specific episodes
Package quickstart
import nekosama
# Initialise a core
core = nekosama.Core()
# Search for animes
for anime in core.database.search(query = 'slime'):
print(anime.title)
# Get an anime from a URL
anime = core.get('https://neko-sama.fr/anime/info/9520-tensei-shitara-slime-datta-ken_vostfr')
# List episodes
for episode in anime.episodes:
print(episode.index, ':', episode.url)
# Download an episode
anime.episodes[0].download(
path = 'ep1.mp4',
quality = 1080
)
For more documentation, have a look at the source code and the docstrings.
License
This project uses the MIT license. See the LICENSE file for more informations.
Metadata
Release files for nekosama 4.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| nekosama-4.1.tar.gz | 8.8 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| nekosama-4.1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 18.7 kB
Release files / nekosama-4.1.tar.gz
| Download URL | nekosama-4.1.tar.gz |
|---|---|
| Size | 8.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
f1c6f29be2974066719bc37d7b5bde4ef7fc6b0fde0a7dfe5de81c77516a525f
|
|
BLAKE2b-256 checksum How to use checksums |
699faf5fe3302a2c272de4d47edf215016508f0e5f7ca371bad968fef703a245
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.1 CPython/3.9.19
|
Release files / nekosama-4.1-py3-none-any.whl
| Download URL | nekosama-4.1-py3-none-any.whl |
|---|---|
| Size | 10.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
2ecbac84a46964052a1d104a2fdf41b080f2d07d7fbb4ab46451a356ba91544e
|
|
BLAKE2b-256 checksum How to use checksums |
079afc5a98df0d54fac28e018635ca87d1547de3a368ac2545f9d10f0849bd44
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.1 CPython/3.9.19
|