Ir al contenido
Conéctate para seguir esto  
elmoyer

MagPi Downloader

Recommended Posts

Buenos días compañeros, 

 

como bien indica nuestro nombre(gnulinuxvagos) somos un tanto vagos así que ¿para qué ir a la pagina de RaspBerry Pi para descargar una a una las revistas gratuitas que nos ofrecen para comprender y dominar a esta pequeña compañera? 

Para eso ejecutamos el siguiente código bash y listo :D

 

Código:

#!/bin/bash
cd ~
mkdir  Revistas\ RaspBerry\ Pi/
cd  Revistas\ RaspBerry\ Pi/
wget -nc https://www.raspberrypi.org/magpi-issues/MagPi01.pdf

wget -nc https://www.raspberrypi.org/magpi-issues/MagPi02.pdf

wget -nc https://www.raspberrypi.org/magpi-issues/MagPi03.pdf

wget -nc https://www.raspberrypi.org/magpi-issues/MagPi04.pdf

wget -nc https://www.raspberrypi.org/magpi-issues/MagPi05.pdf

wget -nc https://www.raspberrypi.org/magpi-issues/MagPi06.pdf

wget -nc https://www.raspberrypi.org/magpi-issues/MagPi07.pdf

wget -nc https://www.raspberrypi.org/magpi-issues/MagPi08.pdf

wget -nc https://www.raspberrypi.org/magpi-issues/MagPi09.pdf

wget -nc https://www.raspberrypi.org/magpi-issues/MagPi10.pdf

wget -nc https://www.raspberrypi.org/magpi-issues/MagPi11.pdf

wget -nc https://www.raspberrypi.org/magpi-issues/MagPi12.pdf

wget -nc https://www.raspberrypi.org/magpi-issues/MagPi13.pdf

wget -nc https://www.raspberrypi.org/magpi-issues/MagPi14.pdf

wget -nc https://www.raspberrypi.org/magpi-issues/MagPi15.pdf

wget -nc https://www.raspberrypi.org/magpi-issues/MagPi16.pdf

wget -nc https://www.raspberrypi.org/magpi-issues/MagPi17.pdf

wget -nc https://www.raspberrypi.org/magpi-issues/MagPi18.pdf

wget -nc https://www.raspberrypi.org/magpi-issues/MagPi19.pdf

wget -nc https://www.raspberrypi.org/magpi-issues/MagPi20.pdf

wget -nc https://www.raspberrypi.org/magpi-issues/MagPi21.pdf

wget -nc https://www.raspberrypi.org/magpi-issues/MagPi22.pdf

wget -nc https://www.raspberrypi.org/magpi-issues/MagPi23.pdf

wget -nc https://www.raspberrypi.org/magpi-issues/MagPi24.pdf

wget -nc https://www.raspberrypi.org/magpi-issues/MagPi25.pdf

wget -nc https://www.raspberrypi.org/magpi-issues/MagPi26.pdf

wget -nc https://www.raspberrypi.org/magpi-issues/MagPi27.pdf

wget -nc https://www.raspberrypi.org/magpi-issues/MagPi28.pdf

wget -nc https://www.raspberrypi.org/magpi-issues/MagPi29.pdf

wget -nc https://www.raspberrypi.org/magpi-issues/MagPi30.pdf

wget -nc https://www.raspberrypi.org/magpi-issues/MagPi31-spread.pdf

wget -nc https://www.raspberrypi.org/magpi-issues/MagPi32.pdf

wget -nc https://www.raspberrypi.org/magpi-issues/MagPi33.pdf

wget -nc https://www.raspberrypi.org/magpi-issues/MagPi34.pdf

wget -nc https://www.raspberrypi.org/magpi-issues/MagPi35.pdf

wget -nc https://www.raspberrypi.org/magpi-issues/MagPi36.pdf

wget -nc https://www.raspberrypi.org/magpi-issues/MagPi37.pdf

wget -nc https://www.raspberrypi.org/magpi-issues/MagPi38.pdf

wget -nc https://www.raspberrypi.org/magpi-issues/MagPi39.pdf

wget -nc https://www.raspberrypi.org/magpi-issues/MagPi40.pdf

wget -nc https://www.raspberrypi.org/magpi-issues/MagPi41.pdf

wget -nc https://www.raspberrypi.org/magpi-issues/MagPi42.pdf

wget -nc https://www.raspberrypi.org/magpi-issues/MagPi43.pdf

wget -nc https://www.raspberrypi.org/magpi-issues/Projects_Book_v1.pdf

wget -nc https://www.raspberrypi.org/magpi-issues/MagPiSE1.pdf

Para comenzar con la descarga sólo hace falta abrir un terminal y escribir: 

sh downloader.sh 

Espero que a alguien le sea útil. 

Un saludo!

Editado por elmoyer

Compartir este post


Enlace al post
Compartir en otros sitios

Código actualizado y mejorado(si el archivo ya se encuentra ya ha sido descargado y sigue estando en el directorio destino pasara al siguiente archivo. Es decir, solo descarga aquellos archivos que no están en la carpeta de tus descarga MagPi)

Compartir este post


Enlace al post
Compartir en otros sitios

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Invitado
Responder en este tema...

×   Has incluido contenido con formato.   Eliminar formato

  Sólo se permiten 75 emoticonos como máximo.

×   Tu enlace ha sido insertado automáticamente.   Deshacer y mostrar como enlace

×   Su contenido anterior ha sido restaurado.   Limpiar editor

×   No puedes pegar imágenes directamente. Súbelas a algún hosting de imágenes y pega la dirección URL

Conéctate para seguir esto  

×
×
  • Crear Nuevo...