Simple IPython script to download all RasberryPi MagPi editions
# run with IPython to download all magpi editions
# run `ipython dl_magpi.py`
# need wget installed
# change current_edition to latest version
current_edition = 31
magpi_url = 'http://www.raspberrypi.org/magpi-issues/MagPi%s.pdf'
for edition in range(1, current_edition+1):
# add a zero if edition number lower than 10
if edition < 10 :
temp = "0" + str(edition)
edition_to_download = magpi_url % temp
if edition > 9 :
edition_to_download = magpi_url % str(edition)
print "Downloading ", edition_to_download
!wget $edition_to_download