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
476 B

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