Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Unable to fetch video comments #41

Closed
RenHong-HC opened this issue May 18, 2023 · 2 comments
Closed

Unable to fetch video comments #41

RenHong-HC opened this issue May 18, 2023 · 2 comments
Labels
duplicate This issue or pull request already exists question Further information is requested

Comments

@RenHong-HC
Copy link

I want to get the comments of the video, but the data obtained by the following code is empty

from tiktokapipy.api import TikTokAPI
def do_something():
    with TikTokAPI(navigator_type = 'chromium') as api:
        video = api.video("https://www.tiktok.com/@sstowen/video/7232788728538844459")
        comments = video.comments
        comment_text = [comment.text for comment in comments]
        print("Comments: ", comment_text)

do_something()

console print result

A second attempt might work.
  video = api.video("https://www.tiktok.com/@sstowen/video/7232788728538844459")
Comments:  []

I checked the related issues, but I didn't find a suitable answer, I hope to get your help

@RenHong-HC RenHong-HC added the question Further information is requested label May 18, 2023
@Russell-Newton Russell-Newton added the duplicate This issue or pull request already exists label May 18, 2023
@Russell-Newton
Copy link
Owner

Duplicate of #23, #30. I'm planning on working on this issue this week and next. Please follow one of those issues to get updates about collecting comments. I'm closing this as a duplicate.

@Russell-Newton Russell-Newton closed this as not planned Won't fix, can't repro, duplicate, stale May 18, 2023
@RenHong-HC
Copy link
Author

ok, thanks for your reply!

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
duplicate This issue or pull request already exists question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants