avilash/TikTokAPI-Python

Why am I getting this issue

Closed this issue · 2 comments

Traceback (most recent call last):
File "c:/Users/48606/Desktop/ttbot/skrypt.py", line 26, in
api.downloadVideoById(trendin[i], 'C:\Users\48606\Desktop\ttbot\vids_tmp')
File "C:\Users\48606\AppData\Local\Programs\Python\Python37\lib\site-packages\TikTokAPI\tiktokapi.py", line 242, in downloadVideoById
with open(save_path, 'wb') as f:
PermissionError: [Errno 13] Permission denied: 'C:\Users\48606\Desktop\ttbot\vids_tmp'

I have the newest version

ivall commented

Run it as administrator.

for anyone who has this issue.
You need to type the file too.
example'C:\Users\48606\Desktop\ttbot\vids_tmp\video.mp4'