From a3f1adfc88eba6e18c8e654d706c4617e19b1049 Mon Sep 17 00:00:00 2001 From: Tino Laomahei Date: Sun, 25 May 2025 15:40:01 +1200 Subject: [PATCH] update docs --- README.md | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index 87af2f3..98b98e1 100644 --- a/README.md +++ b/README.md @@ -271,7 +271,7 @@ const Tiktok = require("@tobyg74/tiktok-api-dl") // Using collection ID const collectionId = "7507916135931218695" Tiktok.Collection(collectionId, { - cursor: "0", // optional, default is "0" + page: 1, // optional, default is 1 count: 5, // optional, default is 5 proxy: "YOUR_PROXY" // optional }).then((result) => console.log(result)) @@ -279,7 +279,7 @@ Tiktok.Collection(collectionId, { // Using collection URL const collectionUrl = "https://www.tiktok.com/@username/collection/name-id" Tiktok.Collection(collectionUrl, { - cursor: "0", + page: 1, count: 5, proxy: "YOUR_PROXY" }).then((result) => console.log(result)) @@ -294,11 +294,11 @@ tiktokdl collection 7507916135931218695 -n 5 # Using collection URL tiktokdl collection "https://www.tiktok.com/@username/collection/name-id" -n 5 -# With cursor for pagination -tiktokdl collection 7507916135931218695 -c 5 -n 5 +# With page for pagination +tiktokdl collection 7507916135931218695 -p 1 -n 5 # With proxy -tiktokdl collection 7507916135931218695 -n 5 -p "http://your-proxy-url" +tiktokdl collection 7507916135931218695 -n 5 -proxy "http://your-proxy-url" ``` ### Response Type @@ -350,7 +350,6 @@ interface TiktokCollectionResponse { }> }> hasMore: boolean - cursor: string } } ```