tiktok5

PHOTO EMBED

Mon Feb 17 2025 08:51:49 GMT+0000 (Coordinated Universal Time)

Saved by @zerozero

from ensemble.api import EDClient

client = EDClient("API_TOKEN")
result = client.tiktok.post_comments(aweme_id="6849400000000")

comments = result.data["comments"]
next_cursor = result.data("nextCursor")

print("Comments fetched:", len(comments))
print("Total comments:", result.data["total"])
content_copyCOPY

https://github.com/EnsembleData/tiktok-scraper