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.

23 lines
644 B

  1. <?php
  2. // Iverly
  3. // http://www.iverly.com/iverly/
  4. // This one hasn't updated in a while, but isn't "finished" yet, so we may need
  5. // to update the max comic ID over time. We could auto-detect it by checking the
  6. // main Iverly page, but we can do that later if it actually updates :P
  7. if (!is_dir('iverly')) {
  8. mkdir('iverly');
  9. }
  10. for ($i = 1; $i <= 86; $i++) {
  11. $name = sprintf('IVE%04d.png', $i);
  12. if (!is_file("iverly/{$name}")) {
  13. $data = file_get_contents("http://www.iverly.com/iverly/comics/{$name}");
  14. echo "Downloading {$name}\n";
  15. file_put_contents("iverly/{$name}", $data);
  16. usleep(5e5);
  17. }
  18. }