1
0
Code Issues Pull Requests Projects Releases Wiki Activity GitHub Gitee
This commit is contained in:
2022-10-02 01:20:48 +08:00
parent 3e1ef431a7
commit 2ff2758fc8
7 changed files with 43 additions and 119 deletions

View File

@@ -31,7 +31,7 @@ async function fetchAll() {
for (let i = 0; i < artistIds.length; i++) {
await global.checkIsExit();
const artistId = artistIds[i];
console.log(`${i}/${artistIds.length} | artist: ${artistId} | ${global.statistics}`);
console.log(`${i}/${artistIds.length} | artist: ${artistId}`);
try {
await fetch({ artistId: artistId });
} catch (err) {
@@ -50,7 +50,6 @@ async function fetch({ artistId, debug = false }) {
}
let url = `https://music.163.com/artist?id=${artistId}`;
try {
// var html = fs.readFileSync(path.join(__dirname, "../../temp", `artist-${artistId}.html`), 'utf8');
var html = await requestUtils.getApiResult(url);