From: Elijah Cohen Date: Fri, 29 Jan 2021 03:05:35 +0000 (-0600) Subject: betters X-Git-Url: https://git.eli173.com/?a=commitdiff_plain;h=e04dc3a1247ab1e1229533a9ecc612d72d1727f6;p=comics betters --- 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