I'm trying to scrape a table with the follow format:
<tr>
<td colspan="2" valign="top">
<table width="100%" border="0" cellspacing="2" cellpadding="2">
</table>
</td>
</tr>
<tr>
<td colspan="2" valign="top">
<table width="100%" border="0" cellspacing="0" cellpadding="0">
</table>
</td>
</tr>
<tr>
<td> </td>
</tr>
<tr>
<td> </td>
</tr>
</tr>
(fragment: http://pastebin.com/hzVVPeF0, original source:
http://goo.gl/eyOpLU)
I'm using the follow code to get the table data, but I can't get the first
tr (red part in the image) in the result, only the second one (blue part).
matches = sel.xpath(
'//*[@class="BoxConteudoSL"]//table//tr//td//table//tr[4]//td//table')
<https://lh3.googleusercontent.com/-ctl27SG7Zh8/VsD7FZK0yXI/AAAAAAAAABQ/g6ho8yZhtkM/s1600/4.PNG>
Any ideia about what I'm doing wrong? Thanks in advance.
--
You received this message because you are subscribed to the Google Groups
"scrapy-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/scrapy-users.
For more options, visit https://groups.google.com/d/optout.