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
Quicker uploads (around 4 seconds), a bit more if using proxy vs ~over 15 with selenium~
More stable library as Corporation APIs tend to be always backwards compatible and they're more or less consistent.
Less dependencies and easier to setup the project (probably will upload lib and bin on PyPI soon)
Cons
We need to monitor how bot detection behave, TikTok seems to have some nice and high barrier in place against spam. (Not sure yet)
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:/.
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:/.