actually fetch all pages

main
Zynh0722 2024-04-02 19:27:51 -07:00
parent 1daa223be7
commit 4b9311c61f
1 changed files with 1 additions and 3 deletions

View File

@ -15,9 +15,7 @@ async function getPatchHrefs() {
let patchHrefs: string[] = []; let patchHrefs: string[] = [];
for (let i = 0; i <= 7; i++) { for (let i = 0; i <= 7; i++) {
const req = await fetch( const req = await fetch(getGalleryPageHref(i));
"https://www.nasa.gov/gallery/human-spaceflight-mission-patches/page/2/",
);
const data = parse(await req.text()); const data = parse(await req.text());
const gallery = data const gallery = data