Hello I have some html file from this website: https://www.oddsportal.com/soccer/argentina/superliga/results/
<td class="name table-participant">
<a href="/soccer/argentina/superliga/independiente-san-martin-tIuN5Umrd/">
<span class="bold">Independiente</span>
"- San Martin T."
</a>
</td>
<td class="name table-participant">
<a href="/soccer/argentina/superliga/lanus-huracan-xIDIe0Gr/">
"Lanus - "
<span class="bold">Huracan</span>
</a>
</td>
<td class="name table-participant">
<a href="/soccer/argentina/superliga/rosario-central-colon-santa-fe-Q1Ye9Jpr/">Rosario Central - Colon Santa FE</a>
</td>
I want to select and join a/text() and span/text() in order to look like this: "Independiente - San Martin T." As you see the 'span' is not allways in the same place and some times is missing (see last 'td class')
I used this code:
('//td[@class="name table-participant"]/a/text() | span/text()').extract()
but it returns only the a/text(). Can you help me to make this work? Thank you