wkaisertexas / tiktok-uploader

Automatically ⬆️ upload TikTok videos
https://pypi.org/project/tiktok-uploader/
364 stars 84 forks source link

IT doesn't post at the end (now works after an edit in the code) #150

Closed Lucid-0x closed 5 days ago

Lucid-0x commented 4 months ago

i got this error image

I tried to change the post = "//div[contains(@class, 'btn-post')]" to everything else but all the same error I also tried it in firefox and it has a different upload interface then same error at the post image

also one thing I installed it from pip and last update was 24 April... will this make a difference also I tried on windows 10 and kali linux machine both same results

Ducksss commented 4 months ago

Facing the same issue as you

AliceKawanami commented 4 months ago

If you go over to the tiktok upload page and select the upload button with inspect element (in the part pointed by the arrow) image You should see the button class. image change the upload class to that in the config.toml file

Lucid-0x commented 4 months ago

If you go over to the tiktok upload page and select the upload button with inspect element (in the part pointed by the arrow) image You should see the button class. image change the upload class to that in the config.toml file

I already tried that but thanks for the suggestion

cslop3r commented 4 months ago

If you go over to the tiktok upload page and select the upload button with inspect element (in the part pointed by the arrow) image You should see the button class. image change the upload class to that in the config.toml file

I already tried that but thanks for the suggestion

Hi did you solve your issue?

Lucid-0x commented 4 months ago

If you go over to the tiktok upload page and select the upload button with inspect element (in the part pointed by the arrow) image You should see the button class. image change the upload class to that in the config.toml file

I already tried that but thanks for the suggestion

Hi did you solve your issue?

Not yet but what I found is people who have it work flawlessly are using Mac and even some of them have 0 views when I tried using a VPN to the Netherlands it blocked me but with the USA it was like normal but it didn't work again so it's a weird problem tbh

cslop3r commented 4 months ago

If you go over to the tiktok upload page and select the upload button with inspect element (in the part pointed by the arrow) image You should see the button class. image change the upload class to that in the config.toml file

I already tried that but thanks for the suggestion

Hi did you solve your issue?

Not yet but what I found is people who have it work flawlessly are using Mac and even some of them have 0 views when I tried using a VPN to the Netherlands it blocked me but with the USA it was like normal but it didn't work again so it's a weird problem tbh

Hmm that's kinda weird. Also, I use a Mac and I have the problem

mrTommorow commented 3 months ago

ive managed to solve this problem by using the pyautogui libary to move the mouse to the relevent positions, if you just delete everything in the def _post_video(driver) and replace it with pyautogui.moveTo(1100, 300, duration=1) time.sleep(2) pyautogui.scroll(-500) time.sleep(2) pyautogui.moveTo(591, 776, duration=1) time.sleep(2) pyautogui.click(duration=1) time.sleep(4) pyautogui.moveTo(1170, 622, duration=1) time.sleep(3) pyautogui.click(duration=1) time.sleep(5) print("upload sucesfull")

you may have to adjust the x and y values to accommodate your screen resolution but with a little bit of tweaking it should work!

Lucid-0x commented 3 months ago

ive managed to solve this problem by using the pyautogui libary to move the mouse to the relevent positions, if you just delete everything in the def _post_video(driver) and replace it with pyautogui.moveTo(1100, 300, duration=1) time.sleep(2) pyautogui.scroll(-500) time.sleep(2) pyautogui.moveTo(591, 776, duration=1) time.sleep(2) pyautogui.click(duration=1) time.sleep(4) pyautogui.moveTo(1170, 622, duration=1) time.sleep(3) pyautogui.click(duration=1) time.sleep(5) print("upload sucesfull")

you may have to adjust the x and y values to accommodate your screen resolution but with a little bit of tweaking it should work!

IT WORKS THANK YOU SO MUCH, YOU ARE A GOAT and this library got me too many ideas to do with and thanks again also good thing, Chrome didn't show the "the browser being run by an automated tool" so I guess this is a good thing and I will read the docs to see if I can make it headless but it totally fine for me without headless... i will leave the issue open in case any one wants to ask questions or the code is improved so we can pull it at the end

LittleBitFishy commented 3 months ago

ive managed to solve this problem by using the pyautogui libary to move the mouse to the relevent positions, if you just delete everything in the def _post_video(driver) and replace it with pyautogui.moveTo(1100, 300, duration=1) time.sleep(2) pyautogui.scroll(-500) time.sleep(2) pyautogui.moveTo(591, 776, duration=1) time.sleep(2) pyautogui.click(duration=1) time.sleep(4) pyautogui.moveTo(1170, 622, duration=1) time.sleep(3) pyautogui.click(duration=1) time.sleep(5) print("upload sucesfull")

you may have to adjust the x and y values to accommodate your screen resolution but with a little bit of tweaking it should work!

hi ive been trying to get my one to work and this is the problem im getting and im not very good at this stuff and i dont rlly understand what you mean to replace the def _post_video(driver) with the code, i dont understand what and where that is, to me it seems like it is part of code that would be provided in this thread but i dont see any and i am confused please help🙏

Lucid-0x commented 3 months ago

I can send a video or photo but what level you are in like have you installed python before can you locate the files of the library thro pip list do you have vs code etc

jbosolutions commented 3 months ago

C:\Users\jbbag\OneDrive\Escritorio\otro tik>tiktok-uploader -v video.mp4 -d "this is my escaped \"description\"" -c cookies.txt [02:39:27] Authenticating browser with cookies [02:39:27] Create a firefox browser instance in headless mode [02:39:38] Authenticating browser with cookies [02:39:41] Posting video.mp4 with description: this is my escaped "description" [02:39:41] Navigating to upload page [02:39:45] Uploading video file [02:39:48] Video should be uploading [02:39:48] Video should be uploaded Message: Stacktrace: RemoteError@chrome://remote/content/shared/RemoteError.sys.mjs:8:8 WebDriverError@chrome://remote/content/shared/webdriver/Errors.sys.mjs:193:5 NoSuchElementError@chrome://remote/content/shared/webdriver/Errors.sys.mjs:511:5 dom.find/</<@chrome://remote/content/shared/DOM.sys.mjs:136:16

[02:40:48] Failed to upload C:\Users\jbbag\OneDrive\Escritorio\otro tik\video.mp4 [02:40:48] A video failed to upload


Error while uploading video