Skip to main content

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:

  1. Log into your ShanaProject account. The session will be saved in your ~/.cache directory.
  2. Download all of your unread follows into a JSON file called follows.json
  3. 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


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 details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

shanaproject_api-0.2.0-py3-none-any.whl (6.6 kB view details)

Uploaded Python 3

File details

Details for the file shanaproject-api-0.2.0.tar.gz.

File metadata

  • Download URL: shanaproject-api-0.2.0.tar.gz
  • Upload date:
  • Size: 5.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/50.3.2 requests-toolbelt/0.9.1 tqdm/4.48.2 CPython/3.7.3

File hashes

Hashes for shanaproject-api-0.2.0.tar.gz
Algorithm Hash digest
SHA256 36cd8c9a2442918acb7fc12d15889f28c5de5f8a8819252cdc7a00000c12ff90
MD5 4859d8bffe49f01ce456c9b900f023c6
BLAKE2b-256 f65729e41fcb5f841b2244060c76e64cd524a8000c859365a3b5404c5e629a57

See more details on using hashes here.

File details

Details for the file shanaproject_api-0.2.0-py3-none-any.whl.

File metadata

  • Download URL: shanaproject_api-0.2.0-py3-none-any.whl
  • Upload date:
  • Size: 6.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/50.3.2 requests-toolbelt/0.9.1 tqdm/4.48.2 CPython/3.7.3

File hashes

Hashes for shanaproject_api-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 a062cc5ac2d3da12675a544df3a571e18781ac668be51848722dd8691a75a94f
MD5 0ec248ada7aa4db4230c99c55646bba2
BLAKE2b-256 18e490435fc2344c349dd7ca2eefba30a1ee56bb8ef263e5502800bd4892ad2c

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page