403 on all save_video calls

403 on all save_video calls

Hi, I'm getting a 403 error every time I try to download a TikTok video.

Code sample:
  1. api = TikAPI(TIKAPI_KEY)
    response = api.public.video(id=tt_id)

    tt_json = response.json()

    filepath = f'/tmp/tiktok/{tt_id}.mp4'
    response.save_video(tt_json['itemInfo']['itemStruct']['video']['downloadAddr'], filepath)


Error:
  1. Traceback (most recent call last):
  2.   File "/Users/adambowker/projects/recipebook-lambda/index.py", line 138, in <module>
  3.     print(download_tiktok('https://www.tiktok.com/@clairehodginss/video/7298475366795234606?q=high%20protein%20chili%20recipe&t=1727737599817'))
  4.           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  5.   File "/Users/adambowker/projects/recipebook-lambda/index.py", line 112, in download_tiktok
  6.     response.save_video(tt_json['itemInfo']['itemStruct']['video']['downloadAddr'], filepath)
  7.   File "/Users/adambowker/projects/recipebook-lambda/.venv/lib/python3.12/site-packages/tikapi/__init__.py", line 89, in save_video
  8.     raise exception

  9. tikapi.api.ResponseException: Failed downloading video, received invalid status code: 403