actually fetch all pages
This commit is contained in:
parent
1daa223be7
commit
4b9311c61f
1 changed files with 1 additions and 3 deletions
4
index.ts
4
index.ts
|
@ -15,9 +15,7 @@ async function getPatchHrefs() {
|
|||
let patchHrefs: string[] = [];
|
||||
|
||||
for (let i = 0; i <= 7; i++) {
|
||||
const req = await fetch(
|
||||
"https://www.nasa.gov/gallery/human-spaceflight-mission-patches/page/2/",
|
||||
);
|
||||
const req = await fetch(getGalleryPageHref(i));
|
||||
const data = parse(await req.text());
|
||||
|
||||
const gallery = data
|
||||
|
|
Loading…
Reference in a new issue