rainwater11
Posts: 29
Joined: Fri Nov 01, 2013 1:49 am

How to download every month with wget?

Mon Jan 06, 2014 2:17 am

Is there a way to download http://www.themagpi.com/ magazines every month, since how often when it comes out, with wget?
Edit:
Is there also a way to upload it to Dropbox?

User avatar
simonmcc
Posts: 181
Joined: Mon Aug 19, 2013 10:07 pm

Re: How to download every month with wget?

Mon Jan 06, 2014 10:20 am

What have you tried so far?

(Assuming its not against their terms & conditions)

I don't see any sort of feed for issues, so you'll have to do some magic yourself.

From a quick look at the site it seems that the issues have a url like http://www.themagpi.com/issue/issue-19/pdf/

The number increments with each issue, so first of all you need some sort of script to increment the number based on the month. Then you can wget that into your local dir. Monthly activity can be scheduled via cron.

A simple google search on dropbox raspberry pi turned up this http://www.raspberrypi.org/phpBB3/viewt ... 30&t=21617

Tie it together, and away you go.
simonmcc.blogspot.com/search/label/pi

rainwater11
Posts: 29
Joined: Fri Nov 01, 2013 1:49 am

Re: How to download every month with wget?

Mon Jan 06, 2014 5:20 pm

Thank you I will try this. :)

atao3
Posts: 7
Joined: Sat Aug 31, 2013 7:13 pm

Re: How to download every month with wget?

Thu Feb 06, 2014 9:45 pm

Hello,
You can use crontab. http://share-link.0pu.ru/?ApWd0w
bye!

(Sorry for my english, i'm french)

jamesh
Raspberry Pi Engineer & Forum Moderator
Raspberry Pi Engineer & Forum Moderator
Posts: 24924
Joined: Sat Jul 30, 2011 7:41 pm

Re: How to download every month with wget?

Fri Feb 07, 2014 9:16 am

rainwater11 wrote:Is there a way to download http://www.themagpi.com/ magazines every month, since how often when it comes out, with wget?
Edit:
Is there also a way to upload it to Dropbox?
I would expect uploading it to dropbox to be a copyright infringement, but you would need to read the MagPi terms and conditions to be sure - they may be fine with unattributed redistribution.
Principal Software Engineer at Raspberry Pi (Trading) Ltd.
Contrary to popular belief, humorous signatures are allowed. Here's an example...
“I own the world’s worst thesaurus. Not only is it awful, it’s awful."

User avatar
georgehudson
Posts: 10
Joined: Tue May 20, 2014 10:41 am
Location: ohio

Re: How to download every month with wget?

Wed May 28, 2014 4:09 am

thanks simon, the urls you provided are very helpful for me. :)

User avatar
simonmcc
Posts: 181
Joined: Mon Aug 19, 2013 10:07 pm

Re: How to download every month with wget?

Thu May 29, 2014 2:31 pm

georgehudson wrote:thanks simon, the urls you provided are very helpful for me. :)
Good! I'm pleased to hear it. And thanks for letting me know!
simonmcc.blogspot.com/search/label/pi

TrevorAppleton
Posts: 74
Joined: Wed May 30, 2012 7:26 pm
Contact: Website

Re: How to download every month with wget?

Tue Jun 10, 2014 3:48 pm

I have just written a blog post explaining how to use Cron to schedule when Python programs should run.

You would write a program which would wget the magazine and then set up Cron to automatically run the program for you once a month. An ideal use of Cron I think!

http://trevorappleton.blogspot.co.uk/20 ... -cron.html
Check out my blog post for Raspberry Pi and Python tutorials.

http://trevorappleton.blogspot.co.uk/

PiGraham
Posts: 3697
Joined: Fri Jun 07, 2013 12:37 pm
Location: Waterlooville

Re: How to download every month with wget?

Tue Jun 10, 2014 4:33 pm

You can parse the RSS feed for the latest issue
http://feeds.feedburner.com/themagpi

Return to “Teaching and learning resources”