@a-soul/extractor-tiktok 中文文档教程
@a-soul/extractor-tiktok
不使用 API 的 TikTok 纯 __NEXT_DATA__
数据提取器/抓取器。
Features
- Simple, fast, ESM by default
- Minimal dependencies, HTTPS requests by got
Usage
import extract from '@a-soul/extractor-tiktok';
const url = `https://www.tiktok.com/@minatoaqua`;
const resp = await extract(url);
console.log(resp.query.uniqueId);
//=> minatoaqua
License
AGPL-3.0
@a-soul/extractor-tiktok
Pure __NEXT_DATA__
data extractor/scraper for TikTok without using API.
Features
- Simple, fast, ESM by default
- Minimal dependencies, HTTPS requests by got
Usage
import extract from '@a-soul/extractor-tiktok';
const url = `https://www.tiktok.com/@minatoaqua`;
const resp = await extract(url);
console.log(resp.query.uniqueId);
//=> minatoaqua
License
AGPL-3.0