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

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.

Github: https://github.com/yashrathi-git/pyHeadspace/
pypi: https://pypi.org/project/pyheadspace/

oh boy do i need this.

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

Make sure you are pasting the complete value for the bearer id(authentication token).
Easy fix
Follow these 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. :slight_smile:

how to do step 4?

In the network tab you would see something like this


When you hover over each tab you would see the URL.
Just find a tab with URL that contains api.prod.headspace.com, example: “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.

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

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.

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
Pypi: 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. Hope this helps some of you.

1 Like