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

Fails to find a class #298

Open
rpcarnell opened this issue Mar 12, 2022 · 1 comment
Open

Fails to find a class #298

rpcarnell opened this issue Mar 12, 2022 · 1 comment

Comments

@rpcarnell
Copy link

Hello,

The bug is right here:
$loadMoreStories = $dom->find('.load-more-wrapper')[0];

You can find this on any Picuki page, like https://www.picuki.com/profile/ironmaiden or https://www.picuki.com/profile/fedez

My theory is that it fails to find any class that is at the bottom of the HTML. The class load-more-wrapper is clearly there.

@limkuncui
Copy link

is there a way to handle if a class is not found or not exists?
I tried
if($dom->find(.a_class)){
echo ("class a_class exists");
}
but it's not working.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants