question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[INSTALLATION] - AttributeError: type object 'TikTokApi' has no attribute 'get_instance'

See original GitHub issue

Describe the bug

AttributeError: type object ‘TikTokApi’ has no attribute ‘get_instance’

The buggy code

Please insert the code that is throwing errors or is giving you weird unexpected results.

api = TikTokApi.get_instance()

Expected behavior

get an api object

Error Trace (if any)

Put the error trace below if there’s any error thrown.

Traceback (most recent call last):
  File "tiktok.py", line 15, in <module>
    api = TikTokApi.get_instance()
AttributeError: type object 'TikTokApi' has no attribute 'get_instance'

Desktop (please complete the following information):

  • OS: MacOS Sierra
  • TikTokApi Version - 3.8.1

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:7 (4 by maintainers)

github_iconTop GitHub Comments

5reactions
davidteathercommented, Mar 14, 2022

get_instance(), should no longer be used. Just use TikTokApi(), same format as examples in readme

4reactions
davidteathercommented, Dec 3, 2020

Do you have the TikTokApi-pyppeteer package installed?

Run

pip uninstall TikTokApi-pyppeteer

Then

pip install TikTokApi --upgrade
Read more comments on GitHub >

github_iconTop Results From Across the Web

TikTokApi has no atrribute get_instance - Stack Overflow
I am trying to run some python code for several examples of TikTokApi but I always have the same error, TikTokApi has no...
Read more >
type object 'tiktokapi' has no attribute 'get_instance' - You.com
I get this error when running for the first time "AttributeError: type object 'TikTokApi' has no attribute 'get_instance'". Downloaded tiktok api and did...
Read more >
Unofficial TikTok API in Python - TikTokApi · PyPI
Unofficial TikTok API in Python. This is an unofficial api wrapper for TikTok.com in python. With this api you are able to call...
Read more >
AttributeError: 'TikTokApi' object has no attribute 'width'
I'm trying to use the library TikTokApi to download TikTok data but when I call any method, it throws: AttributeError: 'TikTokApi' object has...
Read more >
8.3 Investigating the skew sensitivity of shell elements
skewExample.py This script performs a parameter study of element type versus skew angle. For more details, see Problem 2.3.4 in the Abaqus Benchmarks...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found