You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

19 lines
455 B

  1. <?php
  2. // Wigu Havin' Fun
  3. // https://www.wigucomics.com/fun/
  4. if (!is_dir('wigu-havin-fun')) {
  5. mkdir('wigu-havin-fun');
  6. }
  7. for ($i = 1; $i <= 61; $i++) {
  8. $name = sprintf('WOO%04d.png', $i);
  9. if (!is_file("wigu-havin-fun/{$name}")) {
  10. $data = file_get_contents("https://www.wigucomics.com/fun/comics/{$name}");
  11. echo "Downloading {$name}\n";
  12. file_put_contents("wigu-havin-fun/{$name}", $data);
  13. usleep(5e5);
  14. }
  15. }