This is a simple bash script to download magazines as PDF file from https://www.heise.de/select.
You will need an active subscription to download anything. This is just an alternative to clicking buttons in your browser.
- Download the script, mark as executable if needed
- Edit script to include your email adress and password for heise.de (at the very beginning of the script)
- Only for Windows Users: Install Ubuntu for Windows
- Open the (Ubuntu) bash console terminal window.
- Change to the directory you have downloaded the script to (e.g.
cd dl_for_heise
) - Run the script, e.g. to download all issues of the magazine c't from the year 2021:
./download.sh ct 2021
- You will find all downloaded PDF files as well as .jpg cover thumbnails in newly created subfolders divided by magazine name and year.
- download all c't magazines between 2014 and 2022:
./download.sh ct 2014 2022
- download other magazines: replace
ct
with whatever is in the URL of the heise archive page, e.g. for the archive of Make:https://www.heise.de/select/make/archiv
the correct name ismake
, and for Retro Gamerhttps://www.heise.de/select/retro-gamer/archiv
, the correct name isretro-gamer
. Further options include:ix
,tr
,mac-and-i
,ct-foto
,ct-wissen
,ix-special
, ... - display additional console output by adding -v at the beginning of the command:
./download.sh -v ct 2014 2022
- sometimes heise does not provide proper PDF files but internal server errors, the script will detect this and retry a few times (see
max_tries_per_download
in the script) - already downloaded files will not be downloaded again
- if you are not authorized to download a certain issue, the script will retry a few times and finally skip the file.
- make sure to replace your email and password in the script
Please check via your web browser if your subscription allows you to download full-page PDFs. Go to a page like this one https://www.heise.de/select/ct/archiv/2022/3 (replace ct
with the magazine you want to download) and check if you have a "Download Issue as PDF" button. If you only see the green "Buy issue" and "Buy Subscription" buttons instead, you are not permitted to download full PDFs. Sometimes you will also only be able to download full PDFs for the last few months.
Some Heise+ subscriptions only allow you to download single articles. In this case, you can use the second script download_articles.sh
that will download and merge articles individually.
For merging the PDF files you will need to install GhostScript (under Linux) and mark the download script executable:
sudo apt-get install gs
chmod a+x download_articles.sh
Edit the script download_articles.sh
and adapt email and password. The usage is exactly like download.sh
.
Sometimes your text editor will convert your line endings to the windows format \r\n (CRLF) instead of \n (LF). Most editors will allow you to convert the line endings back to LF. You can also use the following command: tr -d '\015' < download.sh > download_lf.sh
to create a new file with converted line endings.
Heise Magazine Downloader v1.0
Logging in...
[ct][2022/01][SKIP] Already downloaded.
[ct][2022/02] Downloading...
################################################################################################################# 100.0%
[ct][2022/02][SUCCESS] Downloaded ct/2022/ct.2022.02.pdf (size: 18488221)
[ct][2022/03][SKIP] Magazine issue does not exist on the server, skipping.
...
MyDealz usernames: tehlers, joboza, dasd1
Please submit pull requests and write issues in this project if you want to further improve this script.
This poject is a community based non-commercial project and not affiliated with Heise Medien GmbH & Co. KG. The script only acts as a client to download files otherwise available via your webbrowser. It does not circumvent any security measures made by the magazines publishers, without an active subscription to their services no downloads will be possible.