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.

[BUG] - Error in byHashtag seach

See original GitHub issue

Describe the bug

When I try to make a search by hashtag (using the Pyppeteer fork) I get an error as shown error.

from TikTokApi import TikTokApi
from TikTokApi.browser import set_async
set_async()

api = TikTokApi()
tmp = api.byHashtag('test', count=30, language='en') #can change the number of tiktoks

ERROR:

---------------------------------------------------------------------------
KeyError                                  Traceback (most recent call last)
<ipython-input-4-fef4fdbe9722> in <module>
      1 api = TikTokApi()
----> 2 tmp = api.byHashtag('test', count=30, language='en')
      3 tmp

c:\miniconda3\envs\botenv\lib\site-packages\TikTokApi\tiktok.py in byHashtag(self, hashtag, count, offset, **kwargs)
    735             res = self.getData(b, **kwargs)
    736 
--> 737             for t in res["itemList"]:
    738                 response.append(t)
    739 

KeyError: 'itemList'

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:6 (1 by maintainers)

github_iconTop GitHub Comments

1reaction
sipkacommented, Nov 18, 2020

Same issue here, and I am not running a fork but just vanilla API, the latest version. For example, searching by sound works fine, so it seems to be localised.

0reactions
pibvbpcommented, Dec 5, 2020

getting the same error with the latest pyppeteer version…

Read more comments on GitHub >

github_iconTop Results From Across the Web

Big bug with hashtag search #1593 - instaloader ... - GitHub
When searching for a hashtag the program breaks completely giving a huge amount of errors (too much to copy over).
Read more >
Instagram Hashtags NOT Working - (QUICK FIX!) - YouTube
Instagram Hashtags NOT Working - (QUICK FIX!) //Are you struggling with an Instagram shadowban or hashtag problem on Instagram, ...
Read more >
Hashtags Not Working? Here's 10 Reasons Why and How to ...
Yes, banned hashtags are indeed blocked by Instagram (temporarily or permanently) due to an excessive amount of inappropriate content such as ...
Read more >
Instagram logging out when searching or clicking '#Embeded'
Instagram is automatically logging out users when searching or clicking on #Embeded or #Embedded, and here's what you need to know.
Read more >
Instagram Hashtags Not Working? (Here are 8 Reasons Why)
Check the hashtags search results of a particular post from an account that does not follow the account you're reviewing. If the post...
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