@sparanoid/eop-extractor-douyin
v1.10.23
Published
Extract rendered data from Douyin web version
Downloads
13
Readme
@sparanoid/eop-extractor-douyin
Pure RENDER_DATA
data extractor/scraper for Douyin without using API.
Features
- Simple, fast, ESM by default
- Minimal dependencies, HTTPS requests by got
Usage
import extract from '@sparanoid/eop-extractor-douyin';
const url = `https://www.douyin.com/user/MS4wLjABAAAA5ZrIrbgva_HMeHuNn64goOD2XYnk4ItSypgRHlbSh1c`;
const resp = await extract(url);
console.log(resp._location);
//=> /user/MS4wLjABAAAA5ZrIrbgva_HMeHuNn64goOD2XYnk4ItSypgRHlbSh1c
Options
const options = {
mobileUserAgent: `got`,
desktopUserAgent: `got`,
requestOptions: {
timeout: {
request: 3000
},
retry: {
limit: 2,
maxRetryAfter: 5,
}
}
}
await extract(url, options);
License
AGPL-3.0