Home > bash, ubuntu > Download all issues of Full Circle Magazine

Download all issues of Full Circle Magazine

Problem

You want to get all the issues of Full Circle Magazine but you don’t want to download ‘em one by one. Is there an easy and painless way to get them in a bundle?

Solution

Here are the necessary URLs till issue 47:


http://dl.fullcirclemagazine.org/issue0_en.pdf


http://dl.fullcirclemagazine.org/issue1_en.pdf


http://dl.fullcirclemagazine.org/issue2_en.pdf


http://dl.fullcirclemagazine.org/issue3_en.pdf


http://dl.fullcirclemagazine.org/issue4_en.pdf


http://dl.fullcirclemagazine.org/issue5_en.pdf


http://dl.fullcirclemagazine.org/issue6_en.pdf


http://dl.fullcirclemagazine.org/issue7_en.pdf


http://dl.fullcirclemagazine.org/issue8_en.pdf


http://dl.fullcirclemagazine.org/issue9_en.pdf


http://dl.fullcirclemagazine.org/issue10_en.pdf


http://dl.fullcirclemagazine.org/issue11_en.pdf


http://dl.fullcirclemagazine.org/issue12_en.pdf


http://dl.fullcirclemagazine.org/issue13_en.pdf


http://dl.fullcirclemagazine.org/issue14_en.pdf


http://dl.fullcirclemagazine.org/issue15_en.pdf


http://dl.fullcirclemagazine.org/issue16_en.pdf


http://dl.fullcirclemagazine.org/issue17_en.pdf


http://dl.fullcirclemagazine.org/issue18_en.pdf


http://dl.fullcirclemagazine.org/issue19_en.pdf


http://dl.fullcirclemagazine.org/issue20_en.pdf


http://dl.fullcirclemagazine.org/issue21_en.pdf


http://dl.fullcirclemagazine.org/issue22_en.pdf


http://dl.fullcirclemagazine.org/issue23_en.pdf


http://dl.fullcirclemagazine.org/issue24_en.pdf


http://dl.fullcirclemagazine.org/issue25_en.pdf


http://dl.fullcirclemagazine.org/issue26_en.pdf


http://dl.fullcirclemagazine.org/issue27_en.pdf


http://test.fullcirclemagazine.org/wp-content/uploads/2009/08/fullcircle-issue28-eng1.pdf


http://dl.fullcirclemagazine.org/issue29_en.pdf


http://dl.fullcirclemagazine.org/issue30_en.pdf


http://dl.fullcirclemagazine.org/issue31_en.pdf


http://dl.fullcirclemagazine.org/issue32_en.pdf


http://dl.fullcirclemagazine.org/issue33_en.pdf


http://dl.fullcirclemagazine.org/issue34_en.pdf


http://dl.fullcirclemagazine.org/issue35_en.pdf


http://dl.fullcirclemagazine.org/issue36_en.pdf


http://dl.fullcirclemagazine.org/issue37_en.pdf


http://dl.fullcirclemagazine.org/issue38_en.pdf


http://dl.fullcirclemagazine.org/issue39_en.pdf


http://dl.fullcirclemagazine.org/issue40_en.pdf


http://dl.fullcirclemagazine.org/issue41_en.pdf


http://dl.fullcirclemagazine.org/issue42_en.pdf


http://dl.fullcirclemagazine.org/issue43_en.pdf


http://dl.fullcirclemagazine.org/issue44_en.pdf


http://dl.fullcirclemagazine.org/issue45_en.pdf


http://dl.fullcirclemagazine.org/issue46_en.pdf


http://dl.fullcirclemagazine.org/issue47_en.pdf

Save it to a file called down.txt, then download them all:

wget -i down.txt

Update (20110130) #1:

Unfortunately, issues below 10 are named as issueX_en.pdf and not as issue0X_en.pdf. Thus, if you download all the files and list them with ‘ls -al‘, issues < 10 will be mixed with the others. Here is how to fix it:

rename -n 's/issue(\d)_en(.*)/issue0$1_en$2/' *.pdf

It will just print the renames (without executing them). If the result is OK, remove the ‘-n‘ switch and execute the command again. Now the files will be renamed in order.

Update (20110130) #2:

This post was taken over by Ubuntu Life, and the user Capitán suggested an easier solution in a comment over there:

wget http://dl.fullcirclemagazine.org/issue{0..45}_en.pdf

I didn’t know about this wget feature :) Now I see why issues < 10 are named as issueX_en.pdf and not as issue0X_en.pdf

Update (20110203): That {0..45} thing is actually expanded by bash, not by wget! See this post for more info.

Update (20110130) #3:

Another reader of Ubuntu Life, marco, suggests a bash script solution:

for i in {0..45}
do 
wget http://dl.fullcirclemagazine.org/issue${i}_en.pdf; 
done

Or, in one line:

for i in {0..45}; do wget http://dl.fullcirclemagazine.org/issue${i}_en.pdf; done
About these ads
  1. Eduardo
    January 30, 2011 at 19:31

    Thanks!

  2. leroy
    December 10, 2012 at 10:59

    Thank you very much for this information. I found it to be very helpfull and worked flawlessly at the very first time of asking! Thanks Again.
    Leroy

  3. December 29, 2012 at 03:02

    Thanks! That’s helpful… :)

  4. January 17, 2013 at 03:45

    thanks, thats very helpful.. i try to download till issue68 :)

  1. January 30, 2011 at 16:26

Leave a Reply

Please log in using one of these methods to post your comment:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

Follow

Get every new post delivered to your Inbox.

Join 72 other followers

%d bloggers like this: