Browse Source

More https updates

Also it looks like Fanboys is offline. Maybe not permanently yet? It did look like the archiver didn't get the complete comic, so I'm hoping it's still around somewhere.
master
Alan Hardman 7 months ago
parent
commit
7ca520ca94
4 changed files with 13 additions and 13 deletions
  1. +3
    -3
      girlswithslingshots.php
  2. +3
    -3
      gogetaroomie.php
  3. +4
    -4
      qc.php
  4. +3
    -3
      whomp.php

+ 3
- 3
girlswithslingshots.php View File

@@ -5,7 +5,7 @@
// color strips, as well as all of the original black-and-white ones (up to
// strip 999), while not downloading any color image twice.

$html = file_get_contents('http://girlswithslingshots.com/comic/gws-chaser-1000');
$html = file_get_contents('https://www.girlswithslingshots.com/comic/gws-chaser-1000');
preg_match('@/comics/(.+\\.(jpg|png|gif))@', $html, $matches);

if (empty($matches[1])) {
@@ -24,14 +24,14 @@ while (true) {
}

echo "Downloading {$matches[1]}\n";
$url = "http://girlswithslingshots.com/comics/{$matches[1]}";
$url = "https://www.girlswithslingshots.com/comics/{$matches[1]}";
$data = @file_get_contents($url);
if ($data) {
file_put_contents("girlswithslingshots/{$matches[1]}", $data);
}

// Find previous page link
$regex = '@rel="prev" href="(http://girlswithslingshots.com/comic/[0-9a-zA-Z-]+)"@';
$regex = '@rel="prev" href="(https://www.girlswithslingshots.com/comic/[0-9a-zA-Z-]+)"@';
preg_match($regex, $html, $prevMatch);

if (empty($prevMatch[1])) {


+ 3
- 3
gogetaroomie.php View File

@@ -2,7 +2,7 @@
// Go Get a Roomie!
// Another ComicPress one, still updating regularly.

$html = file_get_contents('http://www.gogetaroomie.com/');
$html = file_get_contents('https://www.gogetaroomie.com/');
preg_match('@/comics/(.+\\.(jpg|png|gif))@', $html, $matches);

if (empty($matches[1])) {
@@ -21,14 +21,14 @@ while (true) {
}

echo "Downloading {$matches[1]}\n";
$url = "http://www.gogetaroomie.com/comics/{$matches[1]}";
$url = "https://www.gogetaroomie.com/comics/{$matches[1]}";
$data = @file_get_contents($url);
if ($data) {
file_put_contents("gogetaroomie/{$matches[1]}", $data);
}

// Find previous page link
$regex = '@rel="prev" href="(http://www.gogetaroomie.com/comic/[0-9a-zA-Z-]+)"@';
$regex = '@rel="prev" href="(https://www.gogetaroomie.com/comic/[0-9a-zA-Z-]+)"@';
preg_match($regex, $html, $prevMatch);

if (empty($prevMatch[1])) {


+ 4
- 4
qc.php View File

@@ -5,7 +5,7 @@
// This one can be re-run several times and it'll safely get images missed in
// the last run if it was stopped before completing

$html = file_get_contents('http://www.questionablecontent.net/');
$html = file_get_contents('https://www.questionablecontent.net/');
preg_match('@/comics/([0-9]+)\\.png@', $html, $matches);

if (!$matches[1]) {
@@ -25,17 +25,17 @@ for ($i = $start; $i > 0; $i--) {
}

echo "Downloading #$i\n";
$url = "http://www.questionablecontent.net/comics/$i.png";
$url = "https://www.questionablecontent.net/comics/$i.png";
$data = @file_get_contents($url);
if ($data) {
file_put_contents("qc/$i.png", $data);
} else {
$url = "http://www.questionablecontent.net/comics/$i.jpg";
$url = "https://www.questionablecontent.net/comics/$i.jpg";
$data = @file_get_contents($url);
if ($data) {
file_put_contents("qc/$i.jpg", $data);
} else {
$url = "http://www.questionablecontent.net/comics/$i.gif";
$url = "https://www.questionablecontent.net/comics/$i.gif";
$data = @file_get_contents($url);
if ($data) {
file_put_contents("qc/$i.gif", $data);


+ 3
- 3
whomp.php View File

@@ -3,7 +3,7 @@

// Another Hiveworks comic, pretty straightforward.

$html = file_get_contents('http://www.whompcomic.com/');
$html = file_get_contents('https://www.whompcomic.com/');
preg_match('@/comics/(.+\\.(jpg|png|gif))@', $html, $matches);

if (empty($matches[1])) {
@@ -22,14 +22,14 @@ while (true) {
}

echo "Downloading {$matches[1]}\n";
$url = "http://www.whompcomic.com/comics/{$matches[1]}";
$url = "https://www.whompcomic.com/comics/{$matches[1]}";
$data = @file_get_contents($url);
if ($data) {
file_put_contents("whomp/{$matches[1]}", $data);
}

// Find previous page link
$regex = '@rel="prev" href="(http://www.whompcomic.com/comic/[0-9a-zA-Z-]+)"@';
$regex = '@rel="prev" href="(https://www.whompcomic.com/comic/[0-9a-zA-Z-]+)"@';
preg_match($regex, $html, $prevMatch);

if (empty($prevMatch[1])) {


Loading…
Cancel
Save