Questions tagged [symfony-panther]

A browser testing and web scraping library for PHP and Symfony. Panther is a convenient standalone library to scrape websites and to run end-to-end tests using real browsers.

56 questions
8
votes
2 answers

How can i set proxy server with symfony/panther

I found two way of setting proxy server one is through chrome web driver capabilities and the other one is directly setting while creating chrome client $this->client = Client::createChromeClient(null, [ …
ahmed waleed
  • 477
  • 1
  • 4
  • 12
6
votes
2 answers

Headless Google Chrome: How to prevent sites to know whether their window is focused or not

Is there a way to prevent sites to know if they are visible or not? Perhaps a command line flag? I checked here but I could not find anything suitable https://peter.sh/experiments/chromium-command-line-switches/. I think they use the page visibility…
5
votes
2 answers

Webscraping Symfony/Panther: Can't get HTML

I want to scrape a site with the symfony panther package within a Laravel application. According to the documentation https://github.com/symfony/panther#a-polymorphic-feline I cannot use the HttpBrowser nor the HttpClient classes because they do not…
Danaq
  • 633
  • 1
  • 6
  • 18
4
votes
1 answer

Symfony crawler select OPTION in SELECT list without FORM

I am crawling a website that has a SELECT that are freestanding with no FORM parent and no NAME, only ID.