Skip to content

Instantly share code, notes, and snippets.

@JeroenSteen
Created May 11, 2020 13:57
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 JeroenSteen/fa16d3ac088044e776794d16d5e3514b to your computer and use it in GitHub Desktop.
Save JeroenSteen/fa16d3ac088044e776794d16d5e3514b to your computer and use it in GitHub Desktop.
Download portolio websites from WDKA students
<?php
ini_set('memory_limit', '-1');
//http://0188353.student.wdka.nl/
foreach(range (999999,111111,1) as $i) {
$s = str_pad($i, 7, "0", STR_PAD_LEFT);
$wget = "wget --recursive --no-clobber --page-requisites --html-extension --convert-links --restrict-file-names=windows --domains wdka.nl --no-parent http://".$s.".student.wdka.nl/".PHP_EOL;
echo $wget.PHP_EOL;
file_put_contents("wget_studentwdkanl.txt", $wget, FILE_APPEND);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment