wkaisertexas / tiktok-uploader

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

"video" word before description #2

Closed Devstored closed 1 year ago

Devstored commented 1 year ago
image

There is the word "video" in front of my description which is added each time I upload a video. However, it does not add it during my tests. For example if my description is "tata" then the upload will be done correctly but when I go to Tiktok in the description of my video it will be indicated: "videotata"

wkaisertexas commented 1 year ago

I ended up finding out about this issue recently as well. The code clears the field with Selenium's element.clear method.

This ends up not working when the computer is asleep for some reason.

Going to try and execute a javascript command and see if that ends up fixing things.

wkaisertexas commented 1 year ago

video being in front of your description comes directly from the filename which overwrites the description box as soon as it is uploaded.

However, filling the box with a description first prevents this when I upload the video manually.

I am not sure if this will work when automated, but it is definitely something I will look into over the next few days.

Devstored commented 1 year ago

video being in front of your description comes directly from the filename which overwrites the description box as soon as it is uploaded.

However, filling the box with a description first prevents this when I upload the video manually.

I am not sure if this will work when automated, but it is definitely something I will look into over the next few days.

It's very clear, thank you for your answer. I will see if your solution works.

EDIT : The temporary solution could be to name the video with the description and no longer indicate a description.

wkaisertexas commented 1 year ago

Descriptions are not guarantied to be unique though. Especially when generating content, it is better to have an ID.

Devstored commented 1 year ago

I found a workaround @wkaisertexas . It is no longer necessary to do a desc.clear(). You can use the code: int_desc = len(description) desc.send_keys(int_desc * Keys.BACKSPACE)

Good luck for the rest of the development, it's really great what you're doing.

wkaisertexas commented 1 year ago

I am about to release a new version which will have proper support for @'s, #'s and privacy settings. I am a little dumb and have been making my commits on main so I am going to wait to push it.

React Selenium Issues shows how the clear function does not work well with react inputs.

wkaisertexas commented 1 year ago

@Devstored

v0.1.2 Fixes the issue of the filename persisting despite clearing. Additionally, it adds support for mentions and hashtags.

Thanks so much for the suggestions.