I have table data like this:
<table class="tablesorter" id="dea">
<thead>
<tr>
<th class="header ">Name</th>
<th class="header">City</th>
<th class="">Address</th>
<th class="">Phone Nos</th>
<th class="">Email</th>
<th class="">Fax</th>
</tr>
</thead>
<tbody>
<tr class="info">
<td style="font:bold 12px Tahoma; color:#1f2c48;">Audi California</td>
<td> California </td>
<td align="left">
A?85, bay Area, Phase 1, <br>
California<br>
California
- 6554655
</td>
<td align="right">
<br>4747744747<br>108388383
</td>
<td align="center">
info@audiCal.net
</td>
<td align="right">
</td>
</tr></tbody>
</table>
I use beautifulsoup to parse this, but now I am having trouble retrieving data from the last four <td>. Whenever I read their values using a property .string, I get Noneas a value. I think this is because they have tags <br>. I need the last four <td>data that have an address, phone number, email_id and fax. Instead, .stringwhat should I use to get all this data?
source
share