question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

KeyError: "name='ttwid', domain=None, path=None"

See original GitHub issue

Hi i try am may ways to slove the problem .

File "/home/me/Tk/main.py", line 29, in <module> for trending_video in api.trending.videos(count=5): File "/home/me/Tk/env/lib/python3.11/site-packages/TikTokApi/api/trending.py", line 40, in videos ttwid = spawn.cookies["ttwid"] ~~~~~~~~~~~~~^^^^^^^^^ File "/home/devy/Tk/env/lib/python3.11/site-packages/requests/cookies.py", line 334, in __getitem__ return self._find_no_duplicates(name) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/me/Tk/env/lib/python3.11/site-packages/requests/cookies.py", line 413, in _find_no_duplicates raise KeyError(f"name={name!r}, domain={domain!r}, path={path!r}") KeyError: "name='ttwid', domain=None, path=None"

Issue Analytics

  • State:open
  • Created 10 months ago
  • Reactions:3
  • Comments:10

github_iconTop GitHub Comments

6reactions
ArthurKun021commented, Dec 6, 2022
from TikTokApi import TikTokApi

with TikTokApi() as api:
    user = api.user(username="therock")
    for video in user.videos():
        print(video.id)

I’ve tested the one from the example, and also getting the same error

1reaction
abdurrahmaan-desaicommented, Dec 6, 2022

I’ve got a similar issue 😦

Read more comments on GitHub >

github_iconTop Results From Across the Web

[BUG] - KeyError: "name='ttwid', domain=None, path ... - GitHub
So I was trying to get user videos and I try to follow the example code : from TikTokApi import TikTokApi verify_fp =...
Read more >
python - TikTokApi giving me an error and I don't know why
_find_no_duplicates(name) File ... domain={domain!r}, path={path!r}") KeyError: "name='ttwid', domain=None, path=None".
Read more >
TikTokApi error : r/learnpython - Reddit
... _find_no_duplicates raise KeyError('name=%r, domain=%r, path=%r' % (name, domain, path)) KeyError: "name='ttwid', domain=None, path=None.
Read more >
KeyError - "name='csrftoken', domain=None, path=None"
I changed my notebook and after installing python3 and the pip version of gallery-dl, i cant download any more. I pretty sure the...
Read more >
Python KeyError: name - YouTube
Python KeyError : name. 2.9K views 7 years ago. ATOM. ATOM. 6.37K subscribers. Subscribe. 2. I like this. I dislike this.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found