# Download all headspace packs with a single command\[python script\]

**URL:** <https://onehack.st/t/download-all-headspace-packs-with-a-single-command-python-script/177879>\
**Category:** Tools & Scripts\
**Tags:** learning, tips-tricks, downloaders\
**Created:** [April 6, 2021, 5:46am UTC](https://onehack.st/t/download-all-headspace-packs-with-a-single-command-python-script/177879 "2021-04-06T05:46:20Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![Yash\_Rathi](https://onehack.st/user_avatar/onehack.st/yash_rathi/32/68293_2.png) [@Yash\_Rathi](https://onehack.st/u/Yash_Rathi)\
**Post date:** [April 6, 2021, 5:46am UTC](https://onehack.st/t/download-all-headspace-packs-with-a-single-command-python-script/177879/1 "2021-04-06T05:46:20Z")

</div>

Python command-line script to download heaspace packs, singles or everyday headspace OR download all packs at once.  
**Note that: You should have headspace subscription, to use this tool.**  
 ![](https://raw.githubusercontent.com/yashrathi-git/headspace-dl/main/images/demo-f.gif)  
Github: [https://github.com/yashrathi-git/pyHeadspace/](https://github.com/yashrathi-git/pyHeadspace/)  
pypi: [https://pypi.org/project/pyheadspace/](https://pypi.org/project/pyheadspace/)

---

<div class="post-metadata">

**Author:** ![MAYUR\_SINALKAR](https://onehack.st/user_avatar/onehack.st/mayur_sinalkar/32/86622_2.png) [@MAYUR\_SINALKAR](https://onehack.st/u/MAYUR_SINALKAR)\
**Post date:** [April 6, 2021, 8:13am UTC](https://onehack.st/t/download-all-headspace-packs-with-a-single-command-python-script/177879/2 "2021-04-06T08:13:15Z")

</div>

oh boy do i need this.

---

<div class="post-metadata">

**Author:** ![h8tefull](https://onehack.st/user_avatar/onehack.st/h8tefull/32/83583_2.png) [@h8tefull](https://onehack.st/u/h8tefull)\
**Post date:** [April 6, 2021, 11:18am UTC](https://onehack.st/t/download-all-headspace-packs-with-a-single-command-python-script/177879/3 "2021-04-06T11:18:25Z")

</div>

Found an error and created a bug in github.  
Hope you can fix it for us 🙂 don’t really know where it’s coming from

---

<div class="post-metadata">

**Author:** ![Yash\_Rathi](https://onehack.st/user_avatar/onehack.st/yash_rathi/32/68293_2.png) [@Yash\_Rathi](https://onehack.st/u/Yash_Rathi)\
**Post date:** [April 6, 2021, 1:50pm UTC](https://onehack.st/t/download-all-headspace-packs-with-a-single-command-python-script/177879/4 "2021-04-06T13:50:13Z")

</div>

Make sure you are pasting the complete value for the bearer id(authentication token).  
**Easy fix**  
Follow these [setup](https://github.com/yashrathi-git/pyHeadspace#setup) instructions.  
But to copy the bearer ID(authorization token), right-click on the authorization parameter without any text selected and use `copy value`. Please update if the issue persists. If the issue is resolved kindly close the issue on github. 🙂

---

<div class="post-metadata">

**Author:** ![Himanshu\_Vashisht](https://onehack.st/user_avatar/onehack.st/himanshu_vashisht/32/79523_2.png) [@Himanshu\_Vashisht](https://onehack.st/u/Himanshu_Vashisht)\
**Post date:** [April 6, 2021, 4:20pm UTC](https://onehack.st/t/download-all-headspace-packs-with-a-single-command-python-script/177879/5 "2021-04-06T16:20:55Z")

</div>

![image](https://onehack.st/uploads/default/original/3X/1/c/1cb855f8095aba1557ade519556fd6460ede5a97.png) how to do step 4?

---

<div class="post-metadata">

**Author:** ![Yash\_Rathi](https://onehack.st/user_avatar/onehack.st/yash_rathi/32/68293_2.png) [@Yash\_Rathi](https://onehack.st/u/Yash_Rathi)\
**Post date:** [April 6, 2021, 5:01pm UTC](https://onehack.st/t/download-all-headspace-packs-with-a-single-command-python-script/177879/6 "2021-04-06T17:01:20Z")

</div>

In the network tab you would see something like this

 ![network tab](https://onehack.st/uploads/default/original/3X/4/7/4776e57adbc33a3da74ca7a926339cdd0822546a.png)  
When you hover over each tab you would see the URL.  
Just find a tab with URL that contains [api.prod.headspace.com](http://api.prod.headspace.com), example: “[api.prod.headspace.com/something?something=something](http://api.prod.headspace.com/something?something=something)” and click on it.  
Then another panel will open on right. In that panel scroll down to see the “request header” section and then follow the steps.  
If you don’t find `authorization` parameter here, repeat the process with a different URL that contains api(dot)prod(dot)headspace(dot)com.  
I have use “(dot)” as onehack doesn’t allow me to put more than 2 URLS.

---

<div class="post-metadata">

**Author:** ![Himanshu\_Vashisht](https://onehack.st/user_avatar/onehack.st/himanshu_vashisht/32/79523_2.png) [@Himanshu\_Vashisht](https://onehack.st/u/Himanshu_Vashisht)\
**Post date:** [April 7, 2021, 1:51pm UTC](https://onehack.st/t/download-all-headspace-packs-with-a-single-command-python-script/177879/7 "2021-04-07T13:51:08Z")

</div>

Thanks, buddy. Its working, I think u Should make a small video so that noobs like me can understand in one go.

---

<div class="post-metadata">

**Author:** ![Yash\_Rathi](https://onehack.st/user_avatar/onehack.st/yash_rathi/32/68293_2.png) [@Yash\_Rathi](https://onehack.st/u/Yash_Rathi)\
**Post date:** [April 9, 2021, 7:30pm UTC](https://onehack.st/t/download-all-headspace-packs-with-a-single-command-python-script/177879/8 "2021-04-09T19:30:25Z")

</div>

**Updated!**

Python command-line script to download heaspace packs, singles or everyday headspace OR download all packs at once.  
**Note that: You should have headspace subscription, to use this tool.**

 ![demo-2](https://onehack.st/uploads/default/original/3X/4/3/432a9c2e280b994aa189fa011d425eaf557ae3e5.png)

I created the script a while ago, but I completely updated it to be very easy to use and straightforward.  
Github : [https://github.com/yashrathi-git/pyHeadspace](https://github.com/yashrathi-git/pyHeadspace)  
Pypi: [https://pypi.org/project/pyheadspace/](https://pypi.org/project/pyheadspace/)

If you have any question feel free to ask. If you encounter any bugs please create a new issue on [github](https://github.com/yashrathi-git/pyHeadspace). Hope this helps some of you.
