from TikTokApi import TikTokApi

verify_fp = "verify_xxx"
api = TikTokApi(custom_verify_fp=verify_fp)

video = api.video(id="7041997751718137094")

# Bytes of the TikTok video
video_data = video.bytes()

with open("out.mp4", "wb") as out_file:
    out_file.write(video_data)

from TikTokApi import TikTokApi

verify_fp = "verify_xxx"
api = TikTokApi(custom_verify_fp=verify_fp)

video = api.video(id="7041997751718137094")

# Bytes of the TikTok video
video_data = video.bytes()

with open("out.mp4", "wb") as out_file:
    out_file.write(video_data)

# Bytes of the TikTok video