const books = Array.from(document.querySelectorAll('.adbl-library-content-row')).map(row => { const link = row.querySelector('a.bc-link.bc-color-base'); const title = link?.querySelector('span.bc-size-headline3')?.textContent.trim() || ''; const href = link?.href || ''; const asinMatch = href.match(/\/([A-Z0-9]{10})(?:[/?]|$)/); const asin = asinMatch ? asinMatch[1] : ''; const author = row.querySelector('.authorLabel')?.parentElement.querySelector('a.bc-link')?.textContent.trim() || ''; const series = row.querySelector('.seriesLabel')?.parentElement.querySelector('a.bc-link')?.textContent.trim() || ''; return { title, asin, href, author, series }; }).filter(book => book.title); console.table(books); copy(JSON.stringify(books, null, 2));