Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

Use javascript from command line / Incorporate into a larger program? #17

Open
Rich700000000000 opened this issue Dec 16, 2024 · 0 comments

Comments

@Rich700000000000
Copy link

Hello. To begin with, I very much appreciate the work you've done here. The instructions from the youtube video were easy to follow, and I especially like that the code still runs after a year.

However, I have a problem. I downloaded my data from TikTok, and it gave me a list of every video I've ever liked. The list is over 3 thousand, meaning I have nearly three thousand separate videos to scrape. The videos I can easily get with yt-dlp. But in order to get the comments from each video, I would have to open EVERY SINGLE one of those videos in my browser and copy the javascript over 3,000 times, and run the python scripts over 3,000 times. That would take months, possibly even a year.

How would I go about using ScrapeTikTokComments.js from the command line, so that I may incorporate it into another script/program? Is there a way I can plug it directly into a headless browser, like Selenium or Phantom.js?

Thank you.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant