It looks like you're offline.
Open Library logo
additional options menu
Last edited by Tauriel063
January 24, 2025 | History

Understanding Artificial Intellligence

var urls = [];
var promises = [];
var seeds = await fetch('https://openlibrary.org/people/[Tauriel063]/lists/[For Collection]/seeds.json').then(r => r.json());
seeds.entries.forEach((item) => {
if(item.type === 'work') urls.push(https://openlibrary.org/books/OL57407555M/Artificial_Intelligence); else if(item.type === 'edition') { promises.push(fetch(item.url+'.json') .then(r => r.json()) .then((record) => { urls.push(record.works[0].key); }) ); } else console.warn('garbage', item); })
Promise.all(promises).then(() => urls.join(' OR '));

History

January 24, 2025 Edited by Tauriel063 Edited without comment.
January 24, 2025 Edited by Tauriel063 Edited without comment.
January 24, 2025 Edited by Tauriel063 Edited without comment.
January 19, 2025 Edited by Tauriel063 Edited without comment.
January 11, 2025 Created by Tauriel063 Edited without comment.