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

  1. <?php
  2. // Overcompensating
  3. // http://www.overcompensating.com/oc/
  4. if (!is_dir('overcompensating')) {
  5. mkdir('overcompensating');
  6. }
  7. for ($i = 1; $i <= 1543; $i++) {
  8. $name = sprintf('OC%04d.png', $i);
  9. if (!is_file("overcompensating/{$name}")) {
  10. $data = file_get_contents("http://www.overcompensating.com/oc/comics/{$name}");
  11. echo "Downloading {$name}\n";
  12. file_put_contents("overcompensating/{$name}", $data);
  13. usleep(5e5);
  14. }
  15. }