Closed zw963 closed 2 years ago
BTW: if there exists some issue when instance visit a a different url use same browser.
e.g.
instance.goto('site1')
# ...
instance.goto('site2') # <= same browser instance goto another site.
i am curious, goto
method if same effect as others methods, like click.
I'm sorry but all your recent issues are not issues they are things to discuss and questions, so let's use issues properly, please move them to https://github.com/rubycdp/ferrum/discussions
@route we can use this for such cases:
Nice I didn't know about this, thanks!
This is a so strange issue, for test it, i deploy same script on a new VPS, use Ubuntu 20.04 (former use Centos 8), and both of them can reproduce this issue.
Before start, let me upload a video for describe the scraping web site.
https://user-images.githubusercontent.com/549126/145583251-a81cde9f-58f7-4b95-80d6-f6a1aae86750.mp4
If you can't see it, please download zipped mp4 video from attachment. 2.zip
As you can see, this video start with after log in success, it enter user admin management page. and then, i send a request to https://www.jin10.com and wait the following element appear.
You can see it works on my local. (Arch Linux) use
ferrum + chrome
, in fact, it works when useferrum + chrome headless
too. but same code, not work on my VPS, i test on two vps, one centos 8, one Ubuntu 20.04, both of them get blocked to wait the tabs in above screenshot red box appear.Following is my scraping code:
I have to admit, headless on local occasionally not work, and headless on VPS, it works several days ago too, it just very very slow when waiting the tabs in most of case if use with chrome headless.
Anyway, please guide me for how to find out where the issue come from. thank you!