-
-
Notifications
You must be signed in to change notification settings - Fork 989
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] - 'browser' object has no attribute 'verifyFp' #237
Comments
Issue-Label Bot is automatically applying the label Links: app homepage, dashboard and code for this bot. |
Hey @demalem, 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, |
What happens when you type the following command into your terminal
|
However, I downloaded chromedriver and included in the path where the script is located. Both in C:\Users\emela.spyder-py3 |
moved chromerdriver to the parent folder where Anaconda is downloaded and got this result now:
|
You should be including the script in the system path not the script path not a specific directory |
Same error, I put chromedriver in C:\Users\emela and pointed all my scripts their as well. |
Here's an article on how to add to system path |
Great thanks, I added it to the PATH variable. Here is a screenshot: Restarted kernel, and same error. I also tried running code from the Chromedriver homepage: https://sites.google.com/a/chromium.org/chromedriver/getting-started and ran into issues as well. I'm assuming I'm not correctly including chromedriver in the PATH or pointing to it accurately. |
I have tried all of these resolutions and nothing seems to work. I am not in a country in which TikTok is banned. I have also tried running it with debug mode enabled 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 20 user's stats. The error:
my code script (snowball.py)
Also, if it helps, when I type in
My internet connection is rather fast as well. |
@edenhikri does #246 solve your issue? |
No, unfortunately it does not. I have tried adding in |
This may help you as I have seen you request this on other similar issues. When I run:
I get this:
|
seems like you have too many request and then get blocked by tiktok server. |
I am not sure if this is the issue... sometimes it works and does all the accounts, sometimes it gets stuck on the error... @fastandslow007 |
First, try to debug:
Then enable dumpio on launch:
Run your script and notice the error. In my case, I got this error:
Try to fix missing libXss.so.1 by installing this (I use Ubuntu):
Then the problem is fixed. Thanks. |
I have tried this... I first enabled debug mode
then I went into /Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/pyppeteer/launcher.py
then I ran snowball.py (my script) It ran everything properly until it got stuck and brought up the same error:
|
Is it okay if you share the full log from the start? |
This is what happens when I run snowball.py (python3 snowball.py) with debug mode set to True and dumpio enabled on launch: (as it is lengthy I have put it in this link for you to view) https://pastr.io/view/tuOfEKsXxly I'm really not sure what the issue could be... |
I discovered the issue may have been with google-api-core interfering with requests. I simple fixed it by:
then:
finally:
|
Unfortunately, this did not actually fix the issue. It seemed to only have fixed the issue for a few hours... I am really not sure what is causing this issue. Can you please help me out @davidteather |
I’ve got no clue what your issue is. You could try to make a VM for a fresh start. The .travis.yml file has specific setup commands |
Those instructions are linux specific... are you able to provide Mac instructions? @davidteather |
I am really unsure what the issue may be... I have tried installing a new virtual environment, running it with debug mode set to True and dumpio enabled on launch. Nothing seems to work. I would love to use this program however it does not work for me |
@edenhikri might be an issue with your actual IP address might be blocked by TikTok. When I used heroku it didn't like how they had their IPs setup. When I had a dedicated IP on a AWS ec2 instance it worked. You might want to try making the requests over a proxy (most publically available free ones probably wont work) |
@davidteather So I tried using a private proxy that I bought. It is based in United States and I ran the script in debug mode in a virtual environment with the proxy and I still got the same error: (I even tried running with dumpio set to True on launch and got the same error)
|
Is there anything else I can try? @davidteather |
Hi,
Sorry to jump in again.
“ OSError: [Errno 24] Too many open files”
Have you try to increase open files via sysctl.conf or limits.conf or
ulimit?
…On Mon, 21 Sep 2020 at 06.55 edenhikri ***@***.***> wrote:
Is there anything else I can try? @davidteather
<https://github.com/davidteather>
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#237 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ALMYDB6P5YKCBNV7SAT6YW3SG2I6LANCNFSM4QK74G2A>
.
|
might depend on your osx version as well.
but lauchd and ulimit should do.
I found by simply googling: "macos too many open files".
https://superuser.com/questions/830149/os-x-yosemite-too-many-files-open
https://medium.com/mindful-technology/too-many-open-files-limit-ulimit-on-mac-os-x-add0f1bfddde
…On Tue, Sep 22, 2020 at 8:30 AM edenhikri ***@***.***> wrote:
@fastandslow007 <https://github.com/fastandslow007> I am on a Mac...
where are these files located?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#237 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ALMYDBZKNSNE5IGHZRF7GQDSG742LANCNFSM4QK74G2A>
.
|
If this is still an issue for you, I had the same problem. I added the following and it resolved the issue with set_async: from TikTokApi.browser import set_async Good luck, and let me know! |
same issue here.
I dump the example code into
here is what i get
running
|
I had the same problem and this solved it. |
i encountered the same issue. |
Same issue and solved by this! |
I have the same issue with "verifyFp" but after adding set_async() I just have anorher error:
|
Same error here |
I had the same issue after deploying it to my raspberry pi, whereas it is working perfectly in windows. Fix pass the below argument while creating TikTokApi() object Command to find the path - "whereis chromium-browser" Alternative: Hopefully, this works in Linux as well. |
I've tried all of your recommendations, but the problem remained unresolved results = 10 trending = api.trending(count=results) for tiktok in trending: print(len(trending)) During handling of the above exception, another exception occurred: |
|
stable version of UserGroup that scrapes and stores user information in preparation for graph assembly note that davidteather/TikTok-Api#237 arises when group size is ~50, which will need to be addressed in the future Merge branch 'develop' into main
Since I've migrated the API to playwright information here may be outdated for TikTokApi >= 3.7.0 if anyone has the same issues on 3.7.0 or greater please open a new issue. |
I was getting an error that TikTokApi didn't have an attribute (width). When I saw your post, it enlighted me. I didn't know I should had started chromedriver x)! Thanks, mate. |
When running the example code from the README:
from TikTokApi import TikTokApi
api = TikTokApi()
results = 10
trending = api.trending(count=results)
for tiktok in trending:
# Prints the text of the tiktok
print(tiktok['desc'])
print(len(trending))
I recieve the below error:
AttributeError: 'browser' object has no attribute 'verifyFp'
I installed chromedriver, but may not have added it to the right path. Can you give guidance in this regards?
The text was updated successfully, but these errors were encountered: