wkaisertexas / tiktok-uploader

Automatically ⬆️ upload TikTok videos
https://pypi.org/project/tiktok-uploader/
MIT License
390 stars 91 forks source link

Correcting upload (Decline cookies & Close the "split" window) #69

Closed blackdede closed 1 year ago

blackdede commented 1 year ago

Hello,

I've added some functions to remove the cookies popup and "split" window when trying to upload video.

Feel free to test this.

Thank you for your attention.

wkaisertexas commented 1 year ago

Hey, @blackdede I am having a few issues with _remove_window.

From a software design perspective maybe splitting _remove_window into _remove_cookies_window and _remove_split_window instead of passing a string as an argument might be better.

However, more broadly, I am having issues getting uploads to work on Safari. Also, you switch to the default context (ie: moving out of the upload iframe) which can cause issues with the webdriver (you may have to switch back if I am not mistaken).

Anyways, good work through. I will definitely look more into this and hopefully fix some of the popups which have been taking place.