duzun / hQuery.php

An extremely fast web scraper that parses megabytes of invalid HTML in a blink of an eye. PHP5.3+, no dependencies.
https://duzun.me/playground/hquery
MIT License
361 stars 74 forks source link

Find element by data attribute #38

Closed mykdavis closed 6 years ago

mykdavis commented 6 years ago

Is it possible to find elements by their data attribute?

I have tried:

$dom->find('span[data-price]'))

But this doesn't find any spans with that data attribute which are there!

duzun commented 6 years ago

Duplicate of #12