Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

URL format not supported #21

Open
Vercingetorix321 opened this issue Jan 17, 2025 · 1 comment
Open

URL format not supported #21

Vercingetorix321 opened this issue Jan 17, 2025 · 1 comment

Comments

@Vercingetorix321
Copy link

Hi, I am by no means an expert at this but I am trying to download certain bookmarked videos and am getting the below:

Error processing video https://www.tiktokv.com/share/video/7446468536303619371/: URL format not supported. Below is an example of a supported url.
https://www.tiktok.com/@therock/video/6829267836783971589
0%| | 0/1962 [02:00<?, ?it/s]
Traceback (most recent call last):
File "/home/user/tiktok-save/./save.py", line 75, in get_videos
video = api.video(url=videoInfo["Link"])
File "/home/user/.local/lib/python3.10/site-packages/TikTokApi/api/video.py", line 65, in init
self.id = extract_video_id_from_url(
File "/home/user/.local/lib/python3.10/site-packages/TikTokApi/helpers.py", line 14, in extract_video_id_from_url
raise TypeError(
TypeError: URL format not supported. Below is an example of a supported url.
https://www.tiktok.com/@therock/video/6829267836783971589

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "/home/user/tiktok-save/./save.py", line 153, in
asyncio.run(get_videos())
File "/usr/lib/python3.10/asyncio/runners.py", line 44, in run
return loop.run_until_complete(main)
File "/usr/lib/python3.10/asyncio/base_events.py", line 649, in run_until_complete
return future.result()
File "/home/user/tiktok-save/./save.py", line 105, in get_videos
failures[tiktok_id] = {
UnboundLocalError: local variable 'tiktok_id' referenced before assignment

This seems to happen regardless of what variables I put in. Any help would be greatly appreciated.

Thank you.

@samirelanduk
Copy link
Owner

I have just merged some fixes made by another user - could you pull in the latest changes and see if this resolves the issue?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants