makiisthenes / TiktokAutoUploader

Automatically Edits Videos and Uploads to Tiktok with CLI, Requests not Selenium.
GNU General Public License v3.0
568 stars 124 forks source link

Rewrite using Internal TikTok API instead of selenium #38

Closed fedecech closed 7 months ago

fedecech commented 1 year ago

For obvious reasons, selenium is slow, error prone and overall frustrating to maintain. TikTok has many different ui versions and taking them all in considerations is nearly impossible, not to talk about small element changes between country and continents. For this reasons, we're migrating to use the internal TikTok api.

Pros

Cons

To keep in mind that for now to get session cookies selenium is still required. Not sure if there's a better way to do that, if anyone has any ideas would be delighted to here them

The structure of the library remains more or less the same, apart from some simplification on abstractions that were not really necessary.

Next step would probably be to build some stronger foundations for scheduling videos.

The PR for this will probably be huge, but the library is still on day 0 so its kind of expected, sorry:/.