FriendsOfPHP / Goutte

Goutte, a simple PHP Web Scraper
MIT License
9.26k stars 1.01k forks source link

How to start from a string instead of a request? #468

Closed realtebo closed 2 years ago

realtebo commented 2 years ago

I've already a string containing valid html.

How can I parse it instead of doing a request ?

stof commented 2 years ago

Use symfony/dom-crawler directly instead of using Goutte. See https://symfony.com/doc/current/components/dom_crawler.html for its doc.

realtebo commented 2 years ago

Oh, thanks