docs: Added tiktok downloader v3
This commit is contained in:
parent
e649860c78
commit
6f18c5112e
83
README.md
83
README.md
@ -1,12 +1,22 @@
|
|||||||
# Tiktok Downloader & Stalk User
|
<h1 align="center">
|
||||||
|
Tiktok Downloader & Stalk User
|
||||||
|
</h1>
|
||||||
|
|
||||||
- Can be used to download videos, images / slides and music from Tiktok
|
<div align="center">
|
||||||
- Can be used to view someone's profile from Tiktok
|
<a href="https://github.com/TobyG74/tiktok-api-dl/graphs/contributors" title="contributors"><img src="https://img.shields.io/github/contributors/TobyG74/tiktok-api-dl.svg?style=for-the-badge"></img></a>
|
||||||
- No login or password are required
|
<a href="https://github.com/TobyG74/tiktok-api-dl/network/members" title="forks"><img src="https://img.shields.io/github/forks/TobyG74/tiktok-api-dl.svg?style=for-the-badge"></img></a>
|
||||||
- It is recommended to use your own cookies on Tiktok Stalker
|
<a href="https://github.com/TobyG74/tiktok-api-dl/stargazers" title="stargazers"><img src="https://img.shields.io/github/issues/TobyG74/tiktok-api-dl.svg?style=for-the-badge"></img></a>
|
||||||
|
</div>
|
||||||
|
<br>
|
||||||
|
<div align="center">
|
||||||
|
<a href="https://nodei.co/npm/@tobyg74/tiktok-api-dl" title="npm"><img src="https://nodei.co/npm/@tobyg74/tiktok-api-dl.png?downloads=true&downloadRank=true&stars=true"></img></a>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<br>
|
||||||
|
|
||||||
# Table of Contents
|
# Table of Contents
|
||||||
|
|
||||||
|
- [Description](#description)
|
||||||
- [Install](#install)
|
- [Install](#install)
|
||||||
- [From NPM](#from-npm)
|
- [From NPM](#from-npm)
|
||||||
- [From Yarn](#from-yarn)
|
- [From Yarn](#from-yarn)
|
||||||
@ -15,14 +25,20 @@
|
|||||||
- [Tiktok Downloader](#tiktok-downloader)
|
- [Tiktok Downloader](#tiktok-downloader)
|
||||||
- [Tiktok Stalker](#tiktok-stalker)
|
- [Tiktok Stalker](#tiktok-stalker)
|
||||||
- [Response](#response)
|
- [Response](#response)
|
||||||
- [Tiktok Downloader V1](#tiktok-downloader-v1)
|
|
||||||
- [Tiktok Downloader V2](#tiktok-downloader-v2)
|
|
||||||
- [Tiktok Stalker](#tiktok-stalker-1)
|
|
||||||
- [Contributors](#contributors)
|
- [Contributors](#contributors)
|
||||||
|
|
||||||
|
# Description
|
||||||
|
|
||||||
|
This project uses the Unofficial API from Tiktok.
|
||||||
|
|
||||||
|
- Can be used to download videos, images / slides and music from Tiktok
|
||||||
|
- Can be used to view someone's profile from Tiktok
|
||||||
|
- No login or password are required
|
||||||
|
- It is recommended to use your own cookies on Tiktok Stalker
|
||||||
|
|
||||||
# Install
|
# Install
|
||||||
|
|
||||||
- @tobyg74/tiktok-api-dl requires Node.js v10+ to run.
|
- This module requires Node.js v10+ to run.
|
||||||
|
|
||||||
## From NPM
|
## From NPM
|
||||||
|
|
||||||
@ -46,13 +62,17 @@ npm install github:TobyG74/tiktok-api-dl
|
|||||||
|
|
||||||
## Tiktok Downloader
|
## Tiktok Downloader
|
||||||
|
|
||||||
|
- V1 uses the API from TiktokAPI
|
||||||
|
- V2 uses the API from [SSSTik](https://ssstik.io/)
|
||||||
|
- V3 uses the API from [MusicalDown](https://musicaldown.com/)
|
||||||
|
|
||||||
```js
|
```js
|
||||||
const { TiktokDL } = require("@tobyg74/tiktok-api-dl")
|
const { TiktokDL } = require("@tobyg74/tiktok-api-dl")
|
||||||
|
|
||||||
const tiktok_url = "https://vt.tiktok.com/ZS84BnrU9"
|
const tiktok_url = "https://vt.tiktok.com/ZS84BnrU9"
|
||||||
|
|
||||||
TiktokDL(tiktok_url, {
|
TiktokDL(tiktok_url, {
|
||||||
version: "v1" // version: "v1" | "v2"
|
version: "v1" // version: "v1" | "v2" | "v3"
|
||||||
}).then((result) => {
|
}).then((result) => {
|
||||||
console.log(result)
|
console.log(result)
|
||||||
})
|
})
|
||||||
@ -88,7 +108,10 @@ TiktokStalk(username, {
|
|||||||
|
|
||||||
# Response
|
# Response
|
||||||
|
|
||||||
## Tiktok Downloader V1
|
<br>
|
||||||
|
<details>
|
||||||
|
<summary><b>Tiktok Downloader V1</b></summary>
|
||||||
|
<br>
|
||||||
|
|
||||||
```ts
|
```ts
|
||||||
{
|
{
|
||||||
@ -144,7 +167,10 @@ TiktokStalk(username, {
|
|||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
## Tiktok Downloader V2
|
</details>
|
||||||
|
<details>
|
||||||
|
<summary><b>Tiktok Downloader V2</b></summary>
|
||||||
|
<br>
|
||||||
|
|
||||||
```ts
|
```ts
|
||||||
{
|
{
|
||||||
@ -169,33 +195,36 @@ TiktokStalk(username, {
|
|||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
## Tiktok Stalker
|
</details>
|
||||||
|
<details>
|
||||||
|
<summary><b>Tiktok Downloader V3</b></summary>
|
||||||
|
<br>
|
||||||
|
|
||||||
```ts
|
```ts
|
||||||
{
|
{
|
||||||
status: "success" | "error"
|
status: "success" | "error"
|
||||||
message?: string
|
message?: string
|
||||||
result?: {
|
result?: {
|
||||||
users: {
|
type: "video" | "image"
|
||||||
username: string
|
desc?: string
|
||||||
|
author: {
|
||||||
|
avatar?: string
|
||||||
nickname: string
|
nickname: string
|
||||||
avatar: string
|
|
||||||
signature: string
|
|
||||||
verified: boolean
|
|
||||||
region: string
|
|
||||||
}
|
}
|
||||||
stats: {
|
music?: string
|
||||||
followerCount: number
|
images?: string[]
|
||||||
followingCount: number
|
video1?: string
|
||||||
heartCount: number
|
video2?: string
|
||||||
videoCount: number
|
video_hd?: string
|
||||||
likeCount: number
|
video_watermark?: string
|
||||||
}
|
|
||||||
posts: Posts[]
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
|
</details>
|
||||||
|
|
||||||
|
<br>
|
||||||
|
|
||||||
# Contributors
|
# Contributors
|
||||||
|
|
||||||
- [Nugraizy](https://github.com/nugraizy)
|
- [Nugraizy](https://github.com/nugraizy)
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user