-
-
Notifications
You must be signed in to change notification settings - Fork 39
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
search_posts_by_hashtag raised JSONDecodeError #9
Comments
Did you solve it? I got the same error |
Not yet
Get Outlook for Android<https://aka.ms/ghei36>
…________________________________
From: MaxiFilippov <notifications@github.com>
Sent: Monday, January 27, 2020 3:40:49 PM
To: sudoguy/tiktok_bot <tiktok_bot@noreply.github.com>
Cc: Muzammil099 <muzammilkhan5432@outlook.com>; Manual <manual@noreply.github.com>
Subject: Re: [sudoguy/tiktok_bot] search_posts_by_hashtag raised JSONDecodeError (#9)
Did you solve it? I got the same error
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub<#9?email_source=notifications&email_token=AGG3HKH7V5RQ2WSBA2P75Y3Q7223DA5CNFSM4JRHAJXKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEJ7BSLI#issuecomment-578689325>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/AGG3HKEMNNBWWFL2LFACA5LQ7223DANCNFSM4JRHAJXA>.
|
Actually, response is empty |
Any updates? |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
great work!
but i encountered the following problem:
2019-11-25 18:42:12.571 | INFO | tiktok_bot.api.api:search_hashtags:219 - Search 1 hashtags with keyword: "cat"
Searching hashtags: 10it [00:01, 9.46it/s] 2019-11-25 18:42:13.632 | INFO | tiktok_bot.api.api:search_hashtags:231 - Found 1 results
Searching hashtags: 10it [00:01, 9.46it/s]
2019-11-25 18:42:13.632 | INFO | tiktok_bot.api.api:search_posts_by_hashtag:186 - Search 10 posts with hashtag: "cat"
Searching posts: 0%| | 0/10 [00:00<?, ?it/s]
Traceback (most recent call last):
File "tiktok.py", line 14, in
posts = bot.search_posts_by_hashtag("cat", count=10)
File "***path/.venv/lib/python3.7/site-packages/tiktok_bot/bot/bot.py", line 55, in search_posts_by_hashtag
posts = self.api.search_posts_by_hashtag(hashtag=tags[0], count=count)
File "***path/.venv/lib/python3.7/site-packages/tiktok_bot/api/api.py", line 191, in search_posts_by_hashtag
response = self._search_posts_by_hashtag(search_request)
File "***path/.venv/lib/python3.7/site-packages/tiktok_bot/api/api.py", line 177, in _search_posts_by_hashtag
search = ListPostsInHashtagResponse(**response.json())
File "***path/.venv/lib/python3.7/site-packages/httpx/models.py", line 930, in json
return jsonlib.loads(self.text, **kwargs)
File "/usr/local/Cellar/python/3.7.3/Frameworks/Python.framework/Versions/3.7/lib/python3.7/json/init.py", line 348, in loads
return _default_decoder.decode(s)
File "/usr/local/Cellar/python/3.7.3/Frameworks/Python.framework/Versions/3.7/lib/python3.7/json/decoder.py", line 337, in decode
obj, end = self.raw_decode(s, idx=_w(s, 0).end())
File "/usr/local/Cellar/python/3.7.3/Frameworks/Python.framework/Versions/3.7/lib/python3.7/json/decoder.py", line 355, in raw_decode
raise JSONDecodeError("Expecting value", s, err.value) from None
json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0)
does search_posts_by_hashtag function need login?
The text was updated successfully, but these errors were encountered: