Replies: 2 comments
-
Can you edit your discussion to show what code you're running? If it's the TikTok bot code I wrote you may need to redownload the code as someone make a PR fixing an issue like that. |
Beta Was this translation helpful? Give feedback.
0 replies
-
you need to convert this post might be old, but api.trending has been changed to api.by_trending |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
PS D:\Projects\tiktok> python main.py
DevTools listening on ws://127.0.0.1:64286/devtools/browser/3ddbadd4-1a9b-47f7-9560-76aab948799e
Traceback (most recent call last):
File "main.py", line 248, in
token_bot.polling(none_stop=True, interval=0)
File "C:\Users\Alex\AppData\Local\Programs\Python\Python38\lib\site-packages\telebot_init.py", line 485, in polling
self._threaded_polling(none_stop, interval, timeout, long_polling_timeout)
File "C:\Users\Alex\AppData\Local\Programs\Python\Python38\lib\site-packages\telebot_init.py", line 544, in _threaded_polling
raise e
File "C:\Users\Alex\AppData\Local\Programs\Python\Python38\lib\site-packages\telebot_init.py", line 507, in __threaded_polling
self.worker_pool.raise_exceptions()
File "C:\Users\Alex\AppData\Local\Programs\Python\Python38\lib\site-packages\telebot\util.py", line 117, in raise_exceptions
raise self.exception_info
File "C:\Users\Alex\AppData\Local\Programs\Python\Python38\lib\site-packages\telebot\util.py", line 69, in run
task(*args, **kwargs)
File "main.py", line 95, in _create_proc_rec
trending = api.trending(message.text)
File "C:\Users\Alex\AppData\Local\Programs\Python\Python38\lib\site-packages\TikTokApi\tiktok.py", line 372, in by_trending
while len(response) < count:
TypeError: '<' not supported between instances of 'int' and 'str'
help please
Beta Was this translation helpful? Give feedback.
All reactions