So I have a html page that has a form, and a table inside the form that has rows of products.
I got to the point now where I am looping through the table rows, and in each loop I grab all the table cells.
for tr in t.findAll('tr'):
td = tr.findAll('td')
Now I want to grab the image src url from the first td.
Html looks like:
<tr>
<td ...>
<a href ... >
<img ... src="asdf/asdf.jpg" .. >
</a>
</td>
...
</tr>
How would I go about doing this? I keep thinking in terms of regex.
I tried:
td[0].a.image.src
but that didn't work as it says no attribute 'src'.