Created
May 11, 2020 13:57
-
-
Save JeroenSteen/fa16d3ac088044e776794d16d5e3514b to your computer and use it in GitHub Desktop.
Download portolio websites from WDKA students
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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