tiktok-scraper-ts
Advanced tools
Comparing version 1.2.7 to 1.2.8
@@ -533,2 +533,3 @@ /** | ||
* @param content the HTML content of the Page | ||
* @deprecated No need for this function anymore since Tiktok now adds the json directly to the html | ||
*/ | ||
@@ -535,0 +536,0 @@ private handleHTMLContent; |
{ | ||
"name": "tiktok-scraper-ts", | ||
"version": "1.2.7", | ||
"version": "1.2.8", | ||
"description": "A scraper for tiktok videos, users and more", | ||
@@ -5,0 +5,0 @@ "main": "dist/main.js", |
@@ -29,3 +29,3 @@ # tiktok-scraper | ||
## Methods | ||
## Class Methods | ||
@@ -41,2 +41,16 @@ ```ts | ||
## Individual Functions | ||
Since 1.2.6 you can also import functions directly | ||
### API | ||
```ts | ||
fetchVideo(url); // Same as TTScraper.video(url) | ||
fetchUser(username); // Same as TTScraper.user(username) | ||
fetchAllVideosFromUser(username); // Same as TTScraper.getAllVideosFromUser(username) | ||
fetchMusic(url); // Same as TTScraper.getMusic(url) | ||
fetchVideoNoWaterMark(url); // Same as TTScraper.noWaterMark(url) | ||
``` | ||
## Examples | ||
@@ -56,2 +70,11 @@ | ||
// OR | ||
import { fetchVideo } from "tiktok-scraper-ts"; | ||
(async () => { | ||
const video = await fetchVideo("link"); | ||
console.log(video); | ||
})(); | ||
// ==> | ||
@@ -91,2 +114,11 @@ | ||
// OR | ||
import { fetchUser } from "tiktok-scraper-ts"; | ||
(async () => { | ||
const user = await fetchUser("link"); | ||
console.log(user); | ||
})(); | ||
// ==> | ||
@@ -93,0 +125,0 @@ |
31990
625
340