bandcamp-fetch/examples/band/getDiscography.ts
patrickkfkan be7010c217 v1.0.0
2023-06-10 22:52:27 +08:00

28 lines
714 B
TypeScript

import bcfetch from '../../';
import util from 'util';
const artistUrl = 'https://musique.coeurdepirate.com';
const labelUrl = 'https://randsrecords.bandcamp.com';
const artistDiscogParams = {
bandUrl: artistUrl,
imageFormat: 'art_app_large'
};
const labelDiscogParams = {
bandUrl: labelUrl,
imageFormat: 'art_app_large'
};
bcfetch.band.getDiscography(artistDiscogParams).then((results) => {
console.log(`Artist URL: ${artistUrl}`);
console.log(util.inspect(results, false, null, false));
console.log();
});
bcfetch.band.getDiscography(labelDiscogParams).then((results) => {
console.log(`Label URL: ${labelUrl}`);
console.log(util.inspect(results, false, null, false));
console.log();
});