Skip to content

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

@Rich700000000000

Description

@Rich700000000000

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions