Answer the question
In order to leave comments, you need to log in
Symfony DomCrawler. How to select a node with a specific text?
I use Symfony DomCrawler to scrape the site. For example, there is a table with many rows and columns. I need specific column data, first row for example. There is a structure like this:
<tr class="info">
<td>Год рождения</td>
<td>1953<td>
<tr>
$name = $short->filterXPath('//text()[contains(.,"Дата Рождения")]')->text();
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question