All Projects → yashrathi-git → pyHeadspace

yashrathi-git / pyHeadspace

Licence: MIT license
command-line script to download headspace packs, singles, everyday meditation and other sessions. You could also download all packs at once

Programming Languages

python
139335 projects - #7 most used programming language

Projects that are alternatives of or similar to pyHeadspace

django-freeze
🧊 convert your dynamic django site to a static one with one line of code.
Stars: ✭ 81 (+118.92%)
Mutual labels:  offline, download, pypi
TidalSwift
Tidal Music Streaming Client & Library written in Swift
Stars: ✭ 45 (+21.62%)
Mutual labels:  offline, download
Bootstrap4 Offline Docs
Bootstrap 4.4 offline documentation
Stars: ✭ 655 (+1670.27%)
Mutual labels:  offline, download
Pyload
The free and open-source Download Manager written in pure Python
Stars: ✭ 2,393 (+6367.57%)
Mutual labels:  download, pypi
Spotify Onthego
Download Spotify playlists by searching for audio files on YouTube
Stars: ✭ 66 (+78.38%)
Mutual labels:  offline, download
Gittar
🎸 Download and/or Extract git repositories (GitHub, GitLab, BitBucket). Cross-platform and Offline-first!
Stars: ✭ 87 (+135.14%)
Mutual labels:  offline, download
Destreamer
Save Microsoft Stream videos for offline enjoyment.
Stars: ✭ 1,365 (+3589.19%)
Mutual labels:  offline, download
pip-download
A wrapper for pip download in offline scenario.
Stars: ✭ 22 (-40.54%)
Mutual labels:  download, pypi
pypi-tools
Command-line Python scripts to do things with PyPI
Stars: ✭ 18 (-51.35%)
Mutual labels:  pypi
querycontacts
Query network abuse contacts for a given ip address on abuse-contacts.abusix.zone
Stars: ✭ 13 (-64.86%)
Mutual labels:  pypi
Canvas-Vision
📷 Wallpaper Downloading Android App
Stars: ✭ 14 (-62.16%)
Mutual labels:  offline
1click-webpage-screenshot
Entire page Screenshot extension for Google Chrome. I'm developing open source extension for Google Chrome. All extension are free for use. Let's make Chrome great again!
Stars: ✭ 432 (+1067.57%)
Mutual labels:  download
terminalplot
No description or website provided.
Stars: ✭ 40 (+8.11%)
Mutual labels:  pypi
SecureAssetDownload
Craft CMS plugin for secure asset download URLs
Stars: ✭ 22 (-40.54%)
Mutual labels:  download
judge
A blazingly fast online judge/ autograder ⚖️ built with Python and the Django framework to test cases against your solution. Check out the sponsor links and help fund DomeCode.
Stars: ✭ 30 (-18.92%)
Mutual labels:  pypi
choo-offline
🔧 offline first support for choo apps
Stars: ✭ 12 (-67.57%)
Mutual labels:  offline
simple http server
simple http server for upload and download
Stars: ✭ 101 (+172.97%)
Mutual labels:  download
File-Explorer
A File Manager with stunning design & astonishing develops, beautifully written in PHP, everything fused in a single file.
Stars: ✭ 31 (-16.22%)
Mutual labels:  offline
pyfoobar
Python project template/scaffold and best practices
Stars: ✭ 31 (-16.22%)
Mutual labels:  pypi
HABApp
Easy home automation with MQTT and/or openHAB
Stars: ✭ 35 (-5.41%)
Mutual labels:  pypi

headspace-cli

PyPI version

Command line script to download headspace packs, singles or everyday meditation.

demo

👶 Dependencies

🛠️ Installation

pip install --upgrade pyheadspace
  • If installing using pip install --user, you must add the user-level bin directory to your PATH environment variable in order to use pyheadspace. If you are using a Unix derivative (FreeBSD, GNU / Linux, OS X), you can achieve this by using export PATH="$HOME/.local/bin:$PATH" command.

OR install with pipx

pipx install pyheadspace

This tool is only meant for personal use. Do not use this for piracy!

⚙️ Setup

Run and enter login credentials.

headspace login

If you use other form of authentication like google(do not have username and password), you could follow these steps

🚀 Usage

Download all packs at once

# Download all packs with each session of duration 15 minutes
headspace pack --all --duration 15

# Download all packs with session duration of 10 & 20 minutes
headspace pack --all --duration 10 --duration 15

Exclude specific packs from downloading:

To exclude specific packs from downloading use --exclude option.
It expects location of text file for links of packs to exclude downloading. Every link should be on separate line.

links.txt:

https://my.headspace.com/modes/meditate/content/154
https://my.headspace.com/modes/meditate/content/150

command

headspace packs --all --exclude links.txt

This would download all packs except the ones in links.txt file

Downloading specific pack

headspace pack <PACK_URL> [Options]

BASIC USAGE

# Download with all session of duration 15 minutes
headspace pack https://my.headspace.com/modes/meditate/content/151 --duration 15 

# Download sessions of multiple duration
headspace pack https://my.headspace.com/modes/meditate/content/151 -d 20 -d 15   

Options:

--id INTEGER         ID of video.
-d, --duration TEXT  Duration or list of duration
--no_meditation      Only download meditation session without techniques
                    videos.
--no_techniques      Only download techniques and not meditation sessions.
--out TEXT           Download directory
--all                Downloads all headspace packs.
-e, --exclude TEXT   Use with `--all` flag. Location of text file with links
                    of packs to exclude downloading. Every link should be
                    on separate line.
--help               Show this message and exit.

Download single session

headspace download <SESSION_URL> [options]

BASIC USAGE

$ headspace download https://my.headspace.com/player/204?authorId=1&contentId=151&contentType=COURSE&mode=meditate&trackingName=Course&startIndex=1 --duration 15

Options:

--out TEXT           Download directory.
--id INTEGER         ID of the video. Not required if URL is provided.
-d, --duration       Duration or list of duration
--help               Show this message and exit.

Download everyday meditations

headspace everyday [OPTIONS]

BASIC USAGE

# Downloads today's meditation
headspace everyday

# Download everyday meditation of specific time period.
# DATE FORMAT: yyyy-mm-dd
headspace everyday --from 2021-03-01 --to 2021-03-20

Options

--from TEXT          Start download from specific date. DATE-FORMAT=>yyyy-
                    mm-dd
--to TEXT            Download till a specific date. DATE-FORMAT=>yyyy-mm-dd
-d, --duration TEXT  Duration or list of duration
--out TEXT           Download directory
--help               Show this message and exit.

Changing Language Preference

By default the language is set to english. You could change to other languages supported by headspace. Other Languages:

  • de-DE
  • es-ES
  • fr-FR
  • pt-BR

To change the language modify the environment variable HEADSPACE_LANG and set the value to the langauge code.

  • For fish/bash shell export HEADSPACE_LANG="fr-FR"
  • Powershell $env:DESIRED_LANGUAGE="fr-FR"

If you encounter any issue or bug, open a new issue on github

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].