Closed konax3 closed 11 months ago
Can you tell me what version of TikTokApi and playwright-python you are using
You can just use user.stats.video_count
to get the number of videos published by a user. There's no need to loop through the videos to find out.
With regards to the navigation timeout, you need to pass it in as a parameter to TikTokAPI
, otherwise it won't get set correctly. Also what region are you in?
Can you tell me what version of TikTokApi and playwright-python you are using
i'm using these versions: tiktokapipy 0.1.13.post1 playwright 1.30.0
You can just use
user.stats.video_count
to get the number of videos published by a user. There's no need to loop through the videos to find out.With regards to the navigation timeout, you need to pass it in as a parameter to
TikTokAPI
, otherwise it won't get set correctly. Also what region are you in?
Thanks!! i'm going to check this. But i'm iterating through them to check if there is a video already uploaded with the same title. I'm from Spain.
passing the timeout like a parameter is working a little better. Few times i get the same error but i think if i put a longer timeout it will be solved. Thanks again.
Hi to all, Do you know if there is a good way to obtain the number of published videos for a specific user?
I'm using this piece of code to confirm if a video with the same title already exists and return the number of uploaded videos:
This piece of code works with a few amount of videos but the lasts weeks i'm always obtaning this error:
Data scraping unable to complete in 30.0s (retries: 0)
I've modified the time in a variable navigation_timeout: float at api.py but i'm only obtain the message with the new value, but it not spent this amount of time, it finished at 30 seconds like before.
Data scraping unable to complete in 30000000.0s (retries: 0)
Do you have any idea to solve this issue?
Thanks in advance.