Browse Source

Simplifying usleeps

master
Alan Hardman 1 year ago
parent
commit
d0f252fb2d
14 changed files with 14 additions and 14 deletions
  1. +1
    -1
      alicegrove.php
  2. +1
    -1
      blasternation.php
  3. +1
    -1
      commitstrip.php
  4. +1
    -1
      doa.php
  5. +1
    -1
      fanboys.php
  6. +1
    -1
      itswalky.php
  7. +1
    -1
      jl8.php
  8. +1
    -1
      laura-kajpust-dailies.php
  9. +1
    -1
      licd.php
  10. +1
    -1
      loadingartist.php
  11. +1
    -1
      otaku-dad.php
  12. +1
    -1
      qc.php
  13. +1
    -1
      sufficientlyremarkable.php
  14. +1
    -1
      xkcd.php

+ 1
- 1
alicegrove.php View File

@@ -43,5 +43,5 @@ for ($i = $start; $i > 0; $i--) {
file_put_contents("alicegrove/$name", $data);
}
}
usleep(500000);
usleep(5e5);
}

+ 1
- 1
blasternation.php View File

@@ -34,5 +34,5 @@ while ($url != $end) {
preg_match('@rel="next" href="(http://www.blasternation.com/comic/[0-9a-zA-Z-]+/?)"@', $html, $matches);
$url = $matches[1];

usleep(500000);
usleep(5e5);
}

+ 1
- 1
commitstrip.php View File

@@ -30,5 +30,5 @@ while ($url) {
preg_match('@href="(https://www.commitstrip.com/20[^"]+)" rel="next"@', $html, $matches);
$url = str_replace('.com/20', '.com/en/20', $matches[1]);

usleep(500000);
usleep(5e5);
}

+ 1
- 1
doa.php View File

@@ -51,5 +51,5 @@ while (true) {
return;
}

usleep(500000);
usleep(5e5);
}

+ 1
- 1
fanboys.php View File

@@ -51,5 +51,5 @@ while (true) {
return;
}

usleep(500000);
usleep(5e5);
}

+ 1
- 1
itswalky.php View File

@@ -51,7 +51,7 @@ foreach ($years as $y) {
file_put_contents("itswalky/$file", $data);
}

usleep(500000);
usleep(5e5);
}
}
}

+ 1
- 1
jl8.php View File

@@ -18,6 +18,6 @@ foreach ($matches[1] as $img) {
echo "Downloading $img\n";
$data = file_get_contents($url . $img);
file_put_contents('jl8/' . $img, $data);
usleep(500000);
usleep(5e5);
}
}

+ 1
- 1
laura-kajpust-dailies.php View File

@@ -60,5 +60,5 @@ while (true) {
}
$date = date('Y-m-d-His', strtotime($dateMatches[1]));

usleep(500000);
usleep(5e5);
}

+ 1
- 1
licd.php View File

@@ -57,5 +57,5 @@ while (true) {
return;
}

usleep(500000);
usleep(5e5);
}

+ 1
- 1
loadingartist.php View File

@@ -45,5 +45,5 @@ while (true) {

preg_match('@/uploads/([0-9]+/[0-9]+)/([0-9a-zA-Z-]+\\.[a-z]{3,4})@', $html, $matches);

usleep(500000);
usleep(5e5);
}

+ 1
- 1
otaku-dad.php View File

@@ -35,5 +35,5 @@ while ($url != $end) {
$url = $matches[1];
$i++;

usleep(500000);
usleep(5e5);
}

+ 1
- 1
qc.php View File

@@ -43,5 +43,5 @@ for ($i = $start; $i > 0; $i--) {
}
}

usleep(500000);
usleep(5e5);
}

+ 1
- 1
sufficientlyremarkable.php View File

@@ -20,5 +20,5 @@ while ($url) {
preg_match('/class="comicPagination nav-prev" href="([^"]+)"/', $html, $urlMatch);
$url = @$urlMatch[1];

usleep(500000);
usleep(5e5);
}

+ 1
- 1
xkcd.php View File

@@ -33,5 +33,5 @@ for ($i = $current->num; $i > 0; $i--) {
}
}

usleep(500000);
usleep(5e5);
}

Loading…
Cancel
Save