-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Open
Labels
bugSomething isn't workingSomething isn't working
Description
I am trying to download video information, and I am getting a key error, but not in my code, rather in internal code.
The buggy code
url = f"https://www.tiktok.com/@tiktok/video/7576075354012388639"
video = api.video(id="7576075354012388639")
video.url = url
video_info = await video.info()Expected behavior
Return the video data
Error tracking
Traceback (most recent call last):
File “/home/aacf/SoMeCollect/src/tt.py”, line 255, in <module>
asyncio.run(main())
File “/usr/lib/python3.11/asyncio/runners.py”, line 190, in run
return runner.run(main)
^^^^^^^^^^^^^^^^
File “/usr/lib/python3.11/asyncio/runners.py”, line 118, in run
return self._loop.run_until_complete(task)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File “/usr/lib/python3.11/asyncio/base_events.py”, line 653, in run_until_complete
return future.result()
^^^^^^^^^^^^^^^
File “/home/aacf/SoMeCollect/src/tt.py”, line 252, in main
await with_api_session (process_all)
File “/home/aacf/SoMeCollect/src/tt.py”, line 230, in with_api_session
await callback(api)
File “/home/aacf/SoMeCollect/src/tt.py”, line 243, in process_all
await process_video(api, username, id)
File “/home/aacf/SoMeCollect/src/tt.py”, line 120, in process_video
video_info = await video.info()
^^^^^^^^^^^^^^^^^^
File “/home/aacf/SoMeCollect/src/venv/lib/python3.11/site-packages/TikTokApi/api/video.py”, line 126, in info
video_info = data[“ItemModule”][self.id]
~~~~^^^^^^^^^^^^^^
KeyError: ‘ItemModule’Desktop:
- OS: Linux parrot 6.12.32
- TikTokApi 7.2.0
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working