-1

How to click on a link dynamically using Goutte php web scraping library? Whatever example that has been shared on net they have only hard coded ('Plugins') the value as in the example below

$link = $crawler->selectLink('Plugins')->link();

How do i dynamically set the parameter value for selectLink()?

4

1 回答 1

0

你在寻找

$text = 'someAnchorText';

$link $crawler->selectLink($text)->link();

?

于 2014-03-07T00:00:07.463 回答