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] - byHashtag not working anymore

See original GitHub issue

Describe the bug Using the byHashtag method in the TikTokApi class fails.

The buggy code

api.byHashtag("test", count=50)

Expected behavior The method should return 50 posts for the hashtag #test, however the query response I get is

{'statusCode': 10201, 'statusMsg': ''}

and thus the code fails with

/.../python3.8/site-packages/TikTokApi/", line 707, in byHashtag
    for t in res["itemList"]:
KeyError: 'itemList'

Desktop (please complete the following information):

  • OS: Arch Linux
  • TikTokApi Version 3.5.8

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:7 (2 by maintainers)

github_iconTop GitHub Comments

davidteathercommented, Oct 28, 2020

Looks like they’ve changed the max count per request. It should be an easy fix. In the meantime, you can use count=35 seems to work for me

issue-label-bot[bot]commented, Oct 27, 2020

Issue-Label Bot is automatically applying the label bug to this issue, with a confidence of 0.99. Please mark this comment with 👍 or 👎 to give our bot feedback!

Links: app homepage, dashboard and code for this bot.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Hashtags Not Working? Here's 10 Reasons Why and How to ...
In this article, we will look at 10 reasons why your hashtags might not be working and how you can fix them to...
Read more >
AttributeError: 'TikTokApi' object has no attribute 'width'
I have the same problem. As David said, this error means that python-playwright or selenium is not launching correctly. What I did is....
Read more >
Why Are Your Instagram Hashtags Not Working? - EarthWeb
Let's take a look at some of the most common reasons why Instagram hashtags not working comes about, and what you can do...
Read more >
Unofficial TikTok API in Python - TikTokApi · PyPI
Unofficial TikTok API in Python. This is an unofficial api wrapper for in python. With this api you are able to call...
Read more >
Easy Google Maps – WordPress plugin
The Google map allows you not only to mark the place of your business location ... If you have any problem or feature...
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 Post

No results found

github_iconTop Related Hashnode Post

No results found