I am trying to run some python code for several examples of TikTokApi but I always have the same error, TikTokApi has no atrribute get_instance. I am running Python 3.8.3rc1 in my machine and the simple code is:
from TikTokApi import TikTokApi
verifyFp="my_code from cookie"
api = TikTokApi.get_instance(use_selenium=True,
executablePath="/path/to/chromedriver",custom_verifyFp=verifyFp)
Any idea why it does not work? Thanks
You need to update your code for V5. Read the documentation
from TikTokApi import TikTokApi
verifyFp="my_code from cookie"
api = TikTokApi(executable_path="/path/to/chromedriver",custom_verify_fp=verifyFp)
More details on TikTokApi class here.