Peter Thaleikis
Peter Thaleikis
Nice, looks like a great addition!
Hey @tonybyng and @Benjouke, better late than never :rofl: I've added support to configure timeout directly. Cheers, Peter
Hey @robertgarrigos Oh sorry, I mixed up the naming with the underlying package. It's `filter` instead of `filterXPath`. `filterXPath` is used in the DOM crawler package: https://github.com/symfony/dom-crawler/blob/8cb4c6e6c8d30c26f70529ed5e50d79a09576c0c/Crawler.php#L686 Please try again...
Can you share the URL and query? On Thu, Sep 15, 2022, 19:10 Robert Garrigos ***@***.***> wrote: > Still not working: > > Warning: DOMXPath::query(): Invalid expression in > /app/vendor/symfony/dom-crawler/Crawler.php...
Hey @robertgarrigos I can replicate the problem. It looks as if the error comes from the DOM crawler, not PHPScraper itself. The xPath could use some tweaking: ```php $myClassElements =...
Hey everyone, I've added a page to document the way custom selectors can be used: https://phpscraper.de/examples/custom-selectors.html There are also some new tests for this: https://github.com/spekulatius/PHPScraper/blob/master/tests/CustomSelectorTest.php Please let me know if...
Implemented with PR above.
Hmmm, while this should work it's quite a bit work to debug with the site being down (doesn't load for me). Can you bring it back up @tacman ?
Hey @tacman can you share some more code on how you add this to PHPScraper? ```php if ($username) { $crawler = $gouteClient->request('GET', $url = $baseUrl . "/login", [ ]); //...
Ah okay, now we are getting a bit closer. I've wondered how you did it. Did you get it working with Goutte only?