[BUG] - raise KeyError('name=%r, domain=%r, path=%r' % (name, domain, path)) KeyError: "name='ttwid', domain=None, path=None"
See original GitHub issueHi, I have a problem just with a basic exercise taken from the guide
from TikTokApi import TikTokApi
with TikTokApi() as api:
user = api.user(username="therock")
for video in user.videos():
print(video.id)
for liked_video in api.user(username="public_likes").videos():
print(liked_video.id)
Despite reinstalling and installing tiktokAPI, I still get this
Traceback (most recent call last):
File "C:\Users\matti\Desktop\s.py", line 6, in <module>
for video in user.videos(get_all=True):
File "C:\Users\matti\AppData\Local\Programs\Python\Python310\lib\site-packages\TikTokApi\api\user.py", line 133, in videos
self.__find_attributes()
File "C:\Users\matti\AppData\Local\Programs\Python\Python310\lib\site-packages\TikTokApi\api\user.py", line 263, in __find_attributes
for u in self.parent.search.users(self.username):
File "C:\Users\matti\AppData\Local\Programs\Python\Python310\lib\site-packages\TikTokApi\api\search.py", line 85, in search_type
ttwid = spawn.cookies["ttwid"]
File "C:\Users\matti\AppData\Local\Programs\Python\Python310\lib\site-packages\requests\cookies.py", line 328, in __getitem__
return self._find_no_duplicates(name)
File "C:\Users\matti\AppData\Local\Programs\Python\Python310\lib\site-packages\requests\cookies.py", line 399, in _find_no_duplicates
raise KeyError('name=%r, domain=%r, path=%r' % (name, domain, path))
KeyError: "name='ttwid', domain=None, path=None"
Do any of you know why this is so?
Issue Analytics
- State:
- Created a year ago
- Reactions:4
- Comments:8
Top Results From Across the Web
What causes the Key Error:"name='AlteonP',domain=None ...
The error I am getting is raise KeyError('name=%r,domain=%r,path=%r'%(name,domain,path)) KeyError:"name='AlteonP',domain=None,path=None".
Read more >Configuring custom domain names with AWS Chalice
In this post, we'll show how to associate your own domain name with a REST API we create. When deploying REST APIs with...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
find this line: ttwid = spawn.cookies[“ttwid”] in file C:\Users\matti\AppData\Local\Programs\Python\Python310\lib\site-packages\TikTokApi\api\search.py change it to ttwid = spawn.cookies.get_dict()[“ttwid”]
does anyone find a solution for that, im haing the same problem