davidteather / TikTok-Api

The Unofficial TikTok API Wrapper In Python
https://davidteather.github.io/TikTok-Api
MIT License
4.92k stars 984 forks source link

Why can't i get  object user ? #207

Closed markdrrr closed 4 years ago

markdrrr commented 4 years ago

Hi, can you help me? Why does not it work?

code

from TikTokApi import TikTokApi
api = TikTokApi() 
tiktoks = api.byUsername('donelij')
print(tiktoks)
for tiktok in tiktoks:
    print(tiktok) 

error

`https://m.tiktok.com/api/user/detail/?uniqueId=donelij&language=en&verifyFp=verify_kdf52cly_U2LFCuwM_JFHm_4Fk3_8l68_fGaEzZPtjX4a&_signature=_02B4Z6wo00f01zGrCoQAAIBAWvEwRGVyrasxqy4AAJNLc1 Converting response to JSON failed response is below (probably empty)

Traceback (most recent call last): ..... raise Exception('Invalid Response') Exception: Invalid Response`

issue-label-bot[bot] commented 4 years ago

Issue-Label Bot is automatically applying the label question to this issue, with a confidence of 0.81. Please mark this comment with :thumbsup: or :thumbsdown: to give our bot feedback!

Links: app homepage, dashboard and code for this bot.

markdrrr commented 4 years ago

How can I get complete information about a user? page for json is empty Help me, please

davidteather commented 4 years ago

Does your script work for other users? The library is working for me to return that user.

What happens when you run

chromedriver

in a console? If there's errors doing that fix them

markdrrr commented 4 years ago

How to write complete correct code to get a user object?  

davidteather commented 4 years ago

Your code is correct for getting TikToks, but there is an issue with your installation. What happens when you run chromedriver in terminal?

markdrrr commented 4 years ago

I don't run chromedriver in terminal, how make it ?

davidteather commented 4 years ago

See #178