Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] - AttributeError: 'browser' object has no attribute 'verifyFp' #263

Closed
edenhikri opened this issue Sep 15, 2020 · 4 comments
Closed
Labels
bug Something isn't working

Comments

@edenhikri
Copy link

edenhikri commented Sep 15, 2020

I am trying to get the last 10 video stats of users with over 1m followers from a 150 user list on tiktok. However, once it is about half way finished printing all the stats, I get the error.

This is the error I receive:

Traceback (most recent call last):
  File "snowball.py", line 24, in <module>
    tiktok = api.getUser(accounts)
  File "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/TikTokApi/tiktok.py", line 723, in getUser
    return self.getData(b, proxy=proxy)
  File "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/TikTokApi/tiktok.py", line 71, in getData
    query = {'verifyFp': b.verifyFp, 'did': b.did, '_signature': b.signature}
AttributeError: 'browser' object has no attribute 'verifyFp'

my code script:

from TikTokApi import TikTokApi

api = TikTokApi()

# file_data is the list of 150 tiktok users accounts) 

for accounts in file_data:
	tiktok = api.getUser(accounts)
	name = (tiktok['userInfo']['user']['uniqueId'])
	followers = (tiktok['userInfo']['stats']['followerCount'])


	if followers > 1000000:
		user_videos = api.byUsername(name, count=10)

		for video in user_videos:
			stats = (video['stats'])
			print(stats, name)

It should print the stats of the last 10 videos for each user that is over 1 million followers, and it does so. However, I get an error after it has printed 21 user's stats.

  • OS: macOS Catalina 10.15.3
  • TikTokApi latest version
  • My location: Australia

I have looked at similar issues under this GitHub repository, however, nothing has fixed it

@edenhikri edenhikri added the bug Something isn't working label Sep 15, 2020
@issue-label-bot
Copy link

Issue-Label Bot is automatically applying the label bug to this issue, with a confidence of 0.83. Please mark this comment with 👍 or 👎 to give our bot feedback!

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

@duplicate-issues
Copy link

Hey @edenhikri,

We did a quick check and this issue looks very darn similar to

This could be a coincidence, but if any of these issues solves your problem then I did a good job 😄

If not, the maintainers will get to this issue shortly.

Cheers,
Your Friendly Neighborhood ProBot

@edenhikri
Copy link
Author

Unfortunately, none of the comments on these other issues resolved the issue I am facing...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants