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

Uploaded Source

Built Distribution

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

Uploaded Python 3

Supported by

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