Closed joveice closed 1 year ago
Oh, it's because I initiate a new crawler instance and it has no clue what the base url is right?
You you must define base URI to crawler, because the URL of the element is relative. Example:
$crawler = new Crawler('', 'http://www.example.com');
html:
code: