MiniGlome / Tiktok-uploader

Python3 script to upload and schedule TikTok videos
195 stars 26 forks source link

Upload Error (403) - r.content = b'' #7

Open FoBasa opened 1 year ago

FoBasa commented 1 year ago

Used the correct session_id, even with a new updated one however it still gives 403 content error

[-] An error occured while reaching https://www.tiktok.com/upload/ r = <Response [403]> r.content = b''

from Tiktok_uploader import uploadVideo

session_id = "sessionid"
file = "path/to/video.mp4"
title = "video title"
tags = ["foryoupage", "foryou", "fyp"]

# Publish the video
uploadVideo(session_id, file, title, tags, verbose=True)
endcycles commented 1 year ago

I'm getting a similar error, however I get status 200 the response from the server sent this:

[-] An error occured while reaching https://www.tiktok.com/api/v1/item/create/
r = <Response [200]>
r.content = b'{"status_code":5,"status_msg":"Invalid parameters","log_pb":{"impr_id":"redacted"}}'

Code:

from Tiktok_uploader import uploadVideo

session_id = "sessionid"
file = "test.mp4"
title = "Testing title"
tags = ["test", "fyp"]

uploadVideo(session_id, file, title, tags, verbose=True)
FoBasa commented 1 year ago

this seems to be an invalid sessionid, assuming you copied the exact 'sessionid' from the cookies, it may also be dated (you can get a new one by logging out & in). I had a certificate installed which I uninstalled & then it went into 'uploading' message, however after countless tries fails.

let me know if you have any success with using the correct sessionid or by getting a new one

sythuan92 commented 1 year ago

i try with correct sessionid but problem still here. [-] An error occured while reaching https://www.tiktok.com/upload/ r = <Response [403]> r.content = b''

546200350 commented 1 year ago

maybe you can try another lib https://github.com/546200350/TikTokUploder it`s also base on this lib

DPS777 commented 1 year ago

same error here

MrAuronTV commented 1 year ago

same error here too

navaneeth-algorithm commented 1 year ago

check this its working perfectly https://github.com/546200350/TikTokUploder