Python API for https://www.shanaproject.com/.
Project description
shanaproject-api
Python API and CLI for https://www.shanaproject.com/.
Example: Download all unread follows
$ shanaproject -u <username> -p <password>
$ shanaproject --follows > follows.json
$ cat follows.json | jq .id | xargs -P2 -n1 shanaproject -D follows/ -d
Let's go through the commands step by step:
- Log into your ShanaProject account. The session will be saved in your
~/.cache
directory. - Download all of your unread follows into a JSON file called
follows.json
- For each of your follows, grab the release ID and pass it into the download command. Two
follows will be downloaded in parallel any given point in time (
-P2
).
Quickstart
from shanaproject import ShanaProject
sp = ShanaProject()
if not sp.load_session(username):
sp.login(username, password)
sp.save_session(username)
for release in sp.follows():
sp.download_release_to('~/Downloads', release.id)
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
shanaproject-api-0.2.0.tar.gz
(5.8 kB
view hashes)
Built Distribution
Close
Hashes for shanaproject_api-0.2.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | a062cc5ac2d3da12675a544df3a571e18781ac668be51848722dd8691a75a94f |
|
MD5 | 0ec248ada7aa4db4230c99c55646bba2 |
|
BLAKE2b-256 | 18e490435fc2344c349dd7ca2eefba30a1ee56bb8ef263e5502800bd4892ad2c |