Example from README does not work: ERROR - Got an unexpected status code #31
Open
Description
When I run tiktok-hashtag-analysis london newyork paris
, I get the following result:
2024-04-02 22:16:55 INFO | Hashtags to scrape: ['london', 'newyork', 'paris']
2024-04-02 22:16:55 INFO | Writing data to directory: /Users/emiel/tiktok_hashtag_data
2024-04-02 22:17:00 WARNING | Encountered error None -> TikTok returned an empty response when fetching data, retrying in headed mode
2024-04-02 22:17:05,955 - TikTokApi.tiktok - ERROR - Got an unexpected status code: {'log_pb': {'impr_id': '20240402201707626915ACF1D3633DA83D'}, 'statusCode': 10201, 'statusMsg': '', 'status_code': 10201, 'status_msg': ''}
2024-04-02 22:17:05,955 - TikTokApi.tiktok - ERROR - Got an unexpected status code: {'log_pb': {'impr_id': '20240402201707626915ACF1D3633DA83D'}, 'statusCode': 10201, 'statusMsg': '', 'status_code': 10201, 'status_msg': ''}
2024-04-02 22:17:05 ERROR | Got an unexpected status code: {'log_pb': {'impr_id': '20240402201707626915ACF1D3633DA83D'}, 'statusCode': 10201, 'statusMsg': '', 'status_code': 10201, 'status_msg': ''}
2024-04-02 22:17:06 WARNING | No posts were found for the hashtag: london
2024-04-02 22:17:06 INFO | Scraped 0 new posts containing the hashtag 'london', with 0 posts previously scraped
2024-04-02 22:17:10 WARNING | Encountered error None -> TikTok returned an empty response when fetching data, retrying in headed mode
2024-04-02 22:17:15,627 - TikTokApi.tiktok - ERROR - Got an unexpected status code: {'log_pb': {'impr_id': '202404022017169B1F5E152602A93EAFBC'}, 'statusCode': 10201, 'statusMsg': '', 'status_code': 10201, 'status_msg': ''}
2024-04-02 22:17:15,627 - TikTokApi.tiktok - ERROR - Got an unexpected status code: {'log_pb': {'impr_id': '202404022017169B1F5E152602A93EAFBC'}, 'statusCode': 10201, 'statusMsg': '', 'status_code': 10201, 'status_msg': ''}
2024-04-02 22:17:15,627 - TikTokApi.tiktok - ERROR - Got an unexpected status code: {'log_pb': {'impr_id': '202404022017169B1F5E152602A93EAFBC'}, 'statusCode': 10201, 'statusMsg': '', 'status_code': 10201, 'status_msg': ''}
2024-04-02 22:17:15,627 - TikTokApi.tiktok - ERROR - Got an unexpected status code: {'log_pb': {'impr_id': '202404022017169B1F5E152602A93EAFBC'}, 'statusCode': 10201, 'statusMsg': '', 'status_code': 10201, 'status_msg': ''}
2024-04-02 22:17:15 ERROR | Got an unexpected status code: {'log_pb': {'impr_id': '202404022017169B1F5E152602A93EAFBC'}, 'statusCode': 10201, 'statusMsg': '', 'status_code': 10201, 'status_msg': ''}
2024-04-02 22:17:15 WARNING | No posts were found for the hashtag: newyork
2024-04-02 22:17:15 INFO | Scraped 0 new posts containing the hashtag 'newyork', with 0 posts previously scraped
2024-04-02 22:17:20 WARNING | Encountered error None -> TikTok returned an empty response when fetching data, retrying in headed mode
2024-04-02 22:17:25,593 - TikTokApi.tiktok - ERROR - Got an unexpected status code: {'log_pb': {'impr_id': '20240402201726506885F21A23AC3E505C'}, 'statusCode': 10201, 'statusMsg': '', 'status_code': 10201, 'status_msg': ''}
2024-04-02 22:17:25,593 - TikTokApi.tiktok - ERROR - Got an unexpected status code: {'log_pb': {'impr_id': '20240402201726506885F21A23AC3E505C'}, 'statusCode': 10201, 'statusMsg': '', 'status_code': 10201, 'status_msg': ''}
2024-04-02 22:17:25,593 - TikTokApi.tiktok - ERROR - Got an unexpected status code: {'log_pb': {'impr_id': '20240402201726506885F21A23AC3E505C'}, 'statusCode': 10201, 'statusMsg': '', 'status_code': 10201, 'status_msg': ''}
2024-04-02 22:17:25,593 - TikTokApi.tiktok - ERROR - Got an unexpected status code: {'log_pb': {'impr_id': '20240402201726506885F21A23AC3E505C'}, 'statusCode': 10201, 'statusMsg': '', 'status_code': 10201, 'status_msg': ''}
2024-04-02 22:17:25,593 - TikTokApi.tiktok - ERROR - Got an unexpected status code: {'log_pb': {'impr_id': '20240402201726506885F21A23AC3E505C'}, 'statusCode': 10201, 'statusMsg': '', 'status_code': 10201, 'status_msg': ''}
2024-04-02 22:17:25,593 - TikTokApi.tiktok - ERROR - Got an unexpected status code: {'log_pb': {'impr_id': '20240402201726506885F21A23AC3E505C'}, 'statusCode': 10201, 'statusMsg': '', 'status_code': 10201, 'status_msg': ''}
2024-04-02 22:17:25 ERROR | Got an unexpected status code: {'log_pb': {'impr_id': '20240402201726506885F21A23AC3E505C'}, 'statusCode': 10201, 'statusMsg': '', 'status_code': 10201, 'status_msg': ''}
2024-04-02 22:17:25 WARNING | No posts were found for the hashtag: paris
2024-04-02 22:17:25 INFO | Scraped 0 new posts containing the hashtag 'paris', with 0 posts previously scraped
This is with the tool installed in a clean conda environment. How to solve this issue?
Metadata
Assignees
Labels
No labels