Tiktok scraper
How to use
1. Install packages
npm install @xct007/tiktok-scraper
using yarn
yarn add @xct007/tiktok-scraper
2. Import packages
const { Tiktok } = require('@xct007/tiktok-scraper');
import { Tiktok } from '@xct007/tiktok-scraper';
3. Example
const { Tiktok } = require('@xct007/tiktok-scraper');
const url = 'https://vt.tiktok.com/ZGJBtcsDq/';
Tiktok(url).then((json) => {
console.log(json);
});
{
status: Boolean,
process_time: Number,
aweme_id: String,
region: String,
desc: String,
author: {
uid: String,
unique_id: String,
nickname: String,
birthday: String,
},
duration: Number,
download: {
nowm: String,
wm: String,
music: String,
music_info: {
id: Number,
title: String,
author: String,
is_original: Boolean,
cover_hd: String,
cover_large: String,
cover_medium: String,
}
},
statistics: {
comment_count: Number,
digg_count: Number,
download_count: Number,
play_count: Number,
share_count: Number,
}
}
TODO
Contributing
If you have a suggestion that would make this better, please fork the repo and create a pull request. You can also simply open an issue.
Don't forget to give the repo a star! Thanks again!
- Fork the Repo
- Commit your Changes
- Push to the Branch
- Open a Pull Request
Contact
David - @david.stefen