Hello, I'm trying to make a scratch where I have to get a link and a text, but I'm having a hard time because of page variations. I have 3 possible variations:
1.
<div>
<strong>
<span style="font-family: arial, helvetica, sans-serif;">
<a href="www...com.br" target="_blank">Edição</a> -
</span>
</strong>
<span style="font-family: arial, helvetica, sans-serif;">01/12/2017
</span>
</div>
2.
<div>
<span style="font-family: arial, helvetica, sans-serif;">
<a href="www...com.br">
<strong>Edição</strong>
</a> - 04/12/2017
</span>
</div>
3.
<div>
<a href="www...com.br">
<strong>Edição</strong>
</a> - 05/12/2017
</div>
I need to get the link inside the href and the date. The link I get with
response.xpath('//a[contains(@href,"www...com.br")]')
I can not get the date. I'm trying to find a solution where I can get the link and date within those code variations.
Thanks in advance for your help.