Closed jujutsu764e closed 1 year ago
Use either "cookies" for a file-based authentication or "cookies_list" for a dictionary-based authentication.
These are keyword arguments and must be specified as such otherwise this will not work.
Sorry for the confusion. If you have any more trouble, please paste the script you are using for greater context.
I did! I have tried both ways, with no success. I used exactly the same code, which provided in examples:
from tiktok_uploader.upload import upload_video
video_path = ".../final_video_1695124971.mp4"
cookies_path = ".../tiktok_cookies.json"
description = "Tech"
if __name__ == "__main__":
upload_video(video_path,
description=description,
cookies=cookies_path,
headless=True)
cookies_list = [
{
"name": "sessionid",
"value": "...",
"domain": "www.tiktok.com",
"path": "/",
"expirationDate": 1710856080.556016
}
]
After set "domain" to ".tiktok.com" and set cookies_list instead of cookies, seems problem has gone. But: Exception: No such driver version 116.0.5845.187 for mac-arm64. Anyway, it's another problem
Already tried different combinations of cookies, checked source code, but have no idea what I am doing wrong. Same results for CLI and for .py. Also tried clean venv, same result. Any suggestions?