Skip to content

PhantomJS onLoadFinished or any other way to make sure page is loaded #85

Description

@iffifan

Hello

I am successfully using this library to run my scrapper.
I am facing 1 issue that some time scrapper misses some information due to that item is not available in dom. I am using Symfony DomCrawler and CssSelecter components.

I tried to add delay in request so that page is rendered properly before fetching content but it does not work properly because if i keep it low it misses information and if i keep it high it takes more time. So it is hard to find a proper number.

I just checked that PhantomJS has event "onLoadFinished"

Can we have something similar here?

Or any idea how we can achieve same thing?

Thanks

Metadata

Metadata

Assignees

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions