Getting error "{"code": "10000", "from": "", "type": "verify" while running getTikTokById()
See original GitHub issueHi all,
I try to get info about few TikToks, so I have the following python script:
#!/usr/bin/env python3
import sys
import json
from TikTokApi import TikTokApi
api = TikTokApi()
tiktokId = sys.argv[1]
tiktok = json.dumps(api.getTikTokById(id=tiktokId))
print(tiktok)
Then I call it from php script:
foreach ($videos as $video) {
$command = escapeshellcmd("python3 {$this->pythonScriptPath} {$video->getRemoteId()}");
$result = shell_exec($command);
$videoData = json_decode($result);
// Saving video info into DB
}
And I often get errors like this:
{“code”: “10000”, “from”: “”, “type”: “verify”, “version”: “”, “region”: “va”, “subtype”: “slide”, “detail”: “yDh6ULqmLqVDRICGAyi4jPFInBgXJZz1CIUKUb9a9KAppr-vAShXGRpksfBueV-Vcx4XxRN2i3vziV4fwZF-3z-x5pS6bZxU5jdMydcTkeqxgLKNzJgVBcynsbFctnPMIMe-VK22osBIvDl45PnUlJEjikdXD*DKqNJ0zjI9JgPsIHSfOXGOpHFZmwq7WPMCiDAjRxxw8EJ5mTWQpQ…”, “verify_event”: “”, “fp”: “verify_3df7d7a1795c135b58a39084f58d3”}
I’ve tried to put sleep(10) after each request in php code, but still getting those error messages. Is there an API errors description anywhere? And what should I do with this error?
I’m using CentOS Linux release 7.7.1908 (Core) Python 3.6 TikTokApi-3.4.0
Thanks for help in advance!
Issue Analytics
- State:
- Created 3 years ago
- Comments:9 (3 by maintainers)
Top GitHub Comments
Changing
custom_verifyFp
helped me, so this error doesn’t mean “your IP is banned”.I literally have this on my home IP. But maybe there is also an issue in my implementation, I’m not using the TikTok-Api repo in production, only a boiled-down version