This small project written in Python allows you to download all the recipes of your recently received HelloFresh deliveries.
I've written this project because between the years 2020 and 2022 I've ordered a lot from HelloFresh and I wanted to digitalize all my recipes, without manually scanning or downloading them. I started scanning the recipes, but wasn't satisfied with the quality of the scans.
The script accesses the HelloFresh-API and requests your past deliveries using your provided JWT access_token.
For each collected recipe ID a request is done against an other API endpoint to retrieve the cardLink attribute which contains the link to the downloadable recipe card.
If the recipe has already been downloaded the recipe is skipped and the next ID is processed.
If want to use this project please follow these steps:
- Clone the project.
- Run
pip install -r requirements.txtto install necessary dependencies. - Create a
.credentialsfile in the root directory. - Login on
https://www.hellofresh.deand copy theaccess_tokeninto the.credentialsfile. - Run the script.
- Either use
python ./downloader.pyto download exactly the recipes from your history. - Or execute
python ./downloader.py --similaritySearchto search for Recipe with same name and ingredients in case that the recipe from your history couldn't be downloaded.
- Either use
- The script should log download result into the console as shown below.
The login is mandatory to access your recent deliveries.
- Go to the HelloFresh-Login page.
- Open the developer console (hit F12 button on Windows with Firefox) and switch to the network analysis tab.
- Filter for
/gw/loginand ensure that the logs aren't emptied by checking "Do not empty logs" under the little gear icon in the top right corner. - Login with your credentials and the response of the request should display the
access_token. - Copy the content of
access_tokento the.credentialsfile.
It seems that HelloFresh doesn't supply downloadable recipe cards for every recipe. This might be a wanted by HelloFresh to avoid people from downloading all their recipes.
So it might be necessary to run this little script more than once in different weeks.


