Skip to content

Instantly share code, notes, and snippets.

@aniversarioperu
Last active December 25, 2015 10:39
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save aniversarioperu/6963012 to your computer and use it in GitHub Desktop.
Save aniversarioperu/6963012 to your computer and use it in GitHub Desktop.
Script para bajarse las páginas del Congreso del Perú que contiene links a los proyectos de ley presentados por los congresistas (año 2013).
#!/bin/bash
for i in {0..900..100}
do
if [ $i = 0 ]; then
torsocks wget "http://www2.congreso.gob.pe/Sicr/TraDocEstProc/CLProLey2011.nsf/PAporNumeroInverso?OpenView"
else
torsocks wget "http://www2.congreso.gob.pe/Sicr/TraDocEstProc/CLProLey2011.nsf/PAporNumeroInverso?OpenView&Start=$i"
fi
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment