From e04dc3a1247ab1e1229533a9ecc612d72d1727f6 Mon Sep 17 00:00:00 2001 From: Elijah Cohen Date: Thu, 28 Jan 2021 21:05:35 -0600 Subject: [PATCH] betters --- comics.js | 7 ++++++- node/runner.sh | 2 +- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/comics.js b/comics.js index ef7db7e..658c426 100644 --- a/comics.js +++ b/comics.js @@ -17,7 +17,12 @@ function getimageurl(number) { // takes the comic no (from the ?comic=<>) and gets the url we want // returns a promise? console.log(number) - fetch("https://qwantz.com/index.php?comic=" + number, {mode: "cors"}) + //fetch("https://qwantz.com/index.php?comic=" + number, {mode: "cors"}) + fetch("https://comics.eli173.com/id/" + number) + .then(req => return req.text()) + .then(text => { + console.log(text) + }) } diff --git a/node/runner.sh b/node/runner.sh index 1e956be..89ad5cf 100755 --- a/node/runner.sh +++ b/node/runner.sh @@ -2,7 +2,7 @@ # runner for comics api thingy - +touch ~/comics/node/hasrun while : do node index.js -- 2.39.2