Files
bc-wishlist-scraper/getWishlist.mjs
T
2026-06-06 13:04:04 +02:00

23 lines
514 B
JavaScript

import bcfetch from 'bandcamp-fetch';
const username = 'KeksNino';
const params = {
target: username,
imageFormat: 'art_app_large'
}
bcfetch.fan.getWishlist(params).then(async (wishlist) => {
console.log(JSON.stringify(wishlist, null, 2));
if (wishlist.continuation) {
console.log('Fetching more by continuation...')
const moreResults = await bcfetch.fan.getWishlist({
...params,
target: wishlist.continuation
});
console.log(JSON.stringify(moreResults, null, 2));
}
});