From 07e36b4aa0691f3015886624395e083395e528c5 Mon Sep 17 00:00:00 2001 From: Joe Huss Date: Wed, 27 Mar 2024 11:33:08 -0400 Subject: [PATCH] updates --- bin/mirror_svg.php | 87 - bin/mirror_worldvectorlogo.php | 4 +- svgs.json | 720870 +++++++++++++++++++++++++++++- 3 files changed, 717962 insertions(+), 2999 deletions(-) delete mode 100644 bin/mirror_svg.php diff --git a/bin/mirror_svg.php b/bin/mirror_svg.php deleted file mode 100644 index 3517f4852..000000000 --- a/bin/mirror_svg.php +++ /dev/null @@ -1,87 +0,0 @@ - 1) { - $limitWrite = true; - $letters = str_split(str_replace(' ', '', strtolower($_SERVER['argv'][1]))); -} else { - $limitWrite = false; - $letters = array_merge(range('a', 'z'), range(0, 9)); -} -foreach ($letters as $l) { - @mkdir('svg/'.$l, true); - $p = 1; - $nextpage = 2; - while ($nextpage != "") { - $file = ".svgs.letter-$l-page-$p"; - if (!file_exists($file)) { - if ($p == 1) { - $u = "https://worldvectorlogo.com/alphabetical/$l"; - } else { - $u = "https://worldvectorlogo.com/alphabetical/$l/$p"; - } - $html = curlRequest($u); - $html = str_replace('Next'); - break; - } - } - $lines = file(".svgs.letter-$l-page-$p"); - foreach ($lines as $line) { - if (strpos($line, 'logo__img') !== false) { - preg_match('/