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

unable to create socket "tls://domain.com:443 #34

Closed mirr closed 6 years ago

mirr commented 6 years ago

I tried this on your demo https://duzun.me/playground/hquery

URL: https://kotaku.com/ SELECTOR: head meta

Then I get this error: unable to create socket "tls://kotaku.com:443"

duzun commented 6 years ago

Similar to #23 and #30. See #26 - might help!

This website uses fastly.net CDN, which might be blocking some bots. In this case, you have to solve the transportation problem before feeding HTML to hQuery::fromHTML.

mirr commented 6 years ago

Thanks! #26 works!