@sparanoid/eop-extractor-qq-music
v1.10.16
Published
Extract rendered data from QQ Music mobile web pages
Downloads
56
Readme
@sparanoid/eop-extractor-qq-music
Pure firstPageData
JSON data extractor/scraper for QQ Music without using API.
Features
- Simple, fast, ESM by default
- Minimal dependencies, HTTPS requests by got
Usage
QQ Music requires qm_keyst
and uin
(requester QQ number) to work. See Options section for more.
import extract from '@sparanoid/eop-extractor-qq-music';
const url = `https://i.y.qq.com/n2/m/share/profile_v2/index.html?userid=oKCPNKnPoinAoz**`;
const resp = await extract(url);
console.log(resp.data.encryptedUin);
//=> oKCPNKnPoinAoz**
Options
const options = {
mobileUserAgent: `got`,
cookies: `qm_keyst=xxxx; uin=123456`,
requestOptions: {
timeout: {
request: 3000
},
retry: {
limit: 2,
maxRetryAfter: 5,
}
}
}
await extract(url, options);
License
AGPL-3.0