{"id":13494691,"url":"https://github.com/yashrathi-git/headspace-cli","last_synced_at":"2026-01-16T03:19:30.158Z","repository":{"id":40442420,"uuid":"353755130","full_name":"yashrathi-git/headspace-cli","owner":"yashrathi-git","description":"A complete command line interface for Headspace, enabling direct access to meditation sessions from the command line.","archived":false,"fork":false,"pushed_at":"2024-07-26T11:46:36.000Z","size":281,"stargazers_count":122,"open_issues_count":16,"forks_count":16,"subscribers_count":5,"default_branch":"main","last_synced_at":"2025-09-10T16:13:25.237Z","etag":null,"topics":["command-line","download","headspace","headspace-dl","headspace-download","offline","pypi","python","python-cli"],"latest_commit_sha":null,"homepage":"https://pypi.org/project/pyheadspace/","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/yashrathi-git.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2021-04-01T16:05:24.000Z","updated_at":"2025-08-28T12:38:05.000Z","dependencies_parsed_at":"2024-07-22T06:26:19.140Z","dependency_job_id":"5a9cec8e-42b1-4c3c-b22d-362e07982276","html_url":"https://github.com/yashrathi-git/headspace-cli","commit_stats":null,"previous_names":["yashrathi-git/pyheadspace"],"tags_count":11,"template":false,"template_full_name":null,"purl":"pkg:github/yashrathi-git/headspace-cli","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yashrathi-git%2Fheadspace-cli","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yashrathi-git%2Fheadspace-cli/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yashrathi-git%2Fheadspace-cli/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yashrathi-git%2Fheadspace-cli/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/yashrathi-git","download_url":"https://codeload.github.com/yashrathi-git/headspace-cli/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yashrathi-git%2Fheadspace-cli/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28477138,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-16T03:13:13.607Z","status":"ssl_error","status_checked_at":"2026-01-16T03:11:47.863Z","response_time":107,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["command-line","download","headspace","headspace-dl","headspace-download","offline","pypi","python","python-cli"],"created_at":"2024-07-31T19:01:27.239Z","updated_at":"2026-01-16T03:19:30.137Z","avatar_url":"https://github.com/yashrathi-git.png","language":"Python","readme":"# headspace-cli\n[![PyPI version](https://badge.fury.io/py/pyheadspace.svg)](https://badge.fury.io/py/pyheadspace)\n\nCommand line script to download headspace packs, singles or everyday meditation.\n\u003cp align=\"center\"\u003e\n\n\u003cimg src = \"https://user-images.githubusercontent.com/57002207/147270294-de0ec3f9-7bfa-4c63-84de-b4239fd4995e.gif\" alt = \"demo\"\u003e\n\u003c/p\u003e\n\n\n\n- [👶 Dependencies](#-dependencies)\n- [🛠️ Installation](#️-installation)\n- [⚙️ Setup](#️-setup)\n- [🚀 Usage](#-usage)\n\n\n\n## 👶 Dependencies\n* [Python 3.7 or higher](https://www.python.org/downloads/)\n\n## 🛠️ Installation\n```sh\npip install --upgrade pyheadspace\n```\n* 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.\n\n\n**OR install with [pipx](https://github.com/pypa/pipx)**\n\n\n```sh\npipx install pyheadspace\n```\n\n### This tool is only meant for personal use. Do not use this for piracy!\n## ⚙️ Setup\n\nRun and enter login credentials.\n```sh\nheadspace login\n```\nIf you use other form of authentication like google(do not have username and password), you could follow\n[these steps](https://github.com/yashrathi-git/pyHeadspace/blob/main/manual_setup.md)\n\n \n\n## 🚀 Usage\n\n## Download all packs at once\n```sh\n# Download all packs with each session of duration 15 minutes\nheadspace pack --all --duration 15\n\n# Download all packs with session duration of 10 \u0026 20 minutes\nheadspace pack --all --duration 10 --duration 15\n```\n**Exclude specific packs from downloading:**\n\u003cbr /\u003e\n\nTo exclude specific packs from downloading use `--exclude` option.\n\u003cbr /\u003e\nIt expects location of text file for links of packs to exclude downloading. Every link should be on separate line.\u003cbr\u003e\u003cbr\u003e\n**links.txt**:\n```\nhttps://my.headspace.com/modes/meditate/content/154\nhttps://my.headspace.com/modes/meditate/content/150\n```\n**command**\n```sh\nheadspace packs --all --exclude links.txt\n```\nThis would download all packs except the ones in `links.txt` file\n\n## Downloading specific pack\n```sh\nheadspace pack \u003cPACK_URL\u003e [Options]\n```\n\n\u003cbr /\u003e\n\n**BASIC USAGE**\n```sh\n# Download with all session of duration 15 minutes\nheadspace pack https://my.headspace.com/modes/meditate/content/151 --duration 15 \n\n# Download sessions of multiple duration\nheadspace pack https://my.headspace.com/modes/meditate/content/151 -d 20 -d 15   \n\n```\n**Options:**\n```sh\n--id INTEGER         ID of video.\n-d, --duration TEXT  Duration or list of duration\n-a --author INTEGER  The author ID that you\\'d like to get the audio from.\n                    You can get the author ID from a few places, including\n                    input label you find when inspecting element on the pack\n                    page.             \n--no_meditation      Only download meditation session without techniques\n                    videos.\n--no_techniques      Only download techniques and not meditation sessions.\n--out TEXT           Download directory\n--all                Downloads all headspace packs.\n-e, --exclude TEXT   Use with `--all` flag. Location of text file with links\n                    of packs to exclude downloading. Every link should be\n                    on separate line.\n--help               Show this message and exit.\n\n```\n\n## Download single session\n```sh\nheadspace download \u003cSESSION_URL\u003e [options]\n```\n\n\n\u003cbr /\u003e\n\n**BASIC USAGE**\n```sh\n$ headspace download https://my.headspace.com/player/204?authorId=1\u0026contentId=151\u0026contentType=COURSE\u0026mode=meditate\u0026trackingName=Course\u0026startIndex=1 --duration 15\n```\n**Options:**\n```sh\n--out TEXT           Download directory.\n--id INTEGER         ID of the video. Not required if URL is provided.\n-d, --duration       Duration or list of duration\n--help               Show this message and exit.\n```\n\n\n## Download everyday meditations\n```sh\nheadspace everyday [OPTIONS]\n```\n\n\n**BASIC USAGE**\n```sh\n# Downloads today's meditation\nheadspace everyday\n\n# Download everyday meditation of specific time period.\n# DATE FORMAT: yyyy-mm-dd\nheadspace everyday --from 2021-03-01 --to 2021-03-20\n```\n**Options**\n```\n--from TEXT          Start download from specific date. DATE-FORMAT=\u003eyyyy-\n                    mm-dd\n--to TEXT            Download till a specific date. DATE-FORMAT=\u003eyyyy-mm-dd\n-d, --duration TEXT  Duration or list of duration\n--out TEXT           Download directory\n--help               Show this message and exit.\n```\n\n## Changing Language Preference\nBy default the language is set to english. You could change to other languages supported by headspace. \nOther Languages:\n- de-DE\n- es-ES\n- fr-FR\n- pt-BR\n\nTo change the language modify the environment variable `HEADSPACE_LANG` and set the value to the langauge code.\n\n- For fish/bash shell `export HEADSPACE_LANG=\"fr-FR\"`\n- Powershell `$env:DESIRED_LANGUAGE=\"fr-FR\"`\n\n\n\n\n\n\n\n**If you encounter any issue or bug, open a new issue on [github](https://github.com/yashrathi-git/pyHeadspace)**\n\n\n\n","funding_links":[],"categories":["Python"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyashrathi-git%2Fheadspace-cli","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fyashrathi-git%2Fheadspace-cli","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyashrathi-git%2Fheadspace-cli/lists"}