tiktok-uploader: Video is written as uploaded but not available on tiktok
Hi,
simple example that is not working on my end:
from tiktok_uploader.upload import upload_video
upload_video(
"output.mp4",
description="first upload #cool",
cookies="cookies.txt",
browser="firefox",
comment=True,
stitch=False,
duet=False,
headless=True,
)
Without activating the headless mode, I also have the issue.
Logs (Video posted successfully) and screen (video has been uploaded) seems to show that everything is working and that the video has been uploaded, but the video is not available on tiktok.
This is on a new fresh account.
About this issue
- Original URL
- State: closed
- Created 3 years ago
- Comments: 38 (6 by maintainers)
browser="firefox": XI will try on a different system & give you updates
Yeah, I think you can still be limited even if you can post the video manually. When I was making this, that was something that I noticed and found strange.
I think TikTok likes the presense of auto-generated content because it can be engaging to viewers (copyrighted movies, tv shows, etc.). However, being naive and having no safeguards would make for a very easy lawsuit. So, they place modest restrictions on people so that they have plausible deniability.
This may seem tin-foil-hatty, but TikTok will detect the presence of the bot on the signin page and not allow you to automatically sign in. The whole
cookies.txtis a way to get around that limitation.TLDR; TikTok probably knows, but they probably do not care so long as they have plausible deniability.
Same issue for me. I tried debugging the issue myself by making the program wait until it closes the browser. The run ends with this screen, with the post button clicked.
However, when I go to ‘Manage your posts’ the video I posted is not there.
When I try to manually upload on the browser instance that Selenium has created, it still does not work. When I manually upload the video on my own browser, it works. I’m suspecting that TikTok is detecting and blocking this script.
every 6 hours on my vps. No, I’m using my fork.
Its working 100% here. My script is uploading videos to tiktok rn. https://www.tiktok.com/@emilyvilaga?_t=8ja8vP2SQ5Y&_r=1