diff --git a/src/extract-kindle-book.ts b/src/extract-kindle-book.ts index c50e3f5..e93554c 100644 --- a/src/extract-kindle-book.ts +++ b/src/extract-kindle-book.ts @@ -167,7 +167,7 @@ async function main() { } async function getPageNav() { - const footerText = await page.locator('ion-footer ion-title').textContent() + const footerText = await page.locator('ion-footer ion-title').first().textContent() return parsePageNav(footerText) }