Click here to Skip to main content
15,887,214 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
<tr>
<td>
<a href="/wiki/Alabama_Judicial_Building" title="Alabama Judicial Building">Alabama Administrative Office of Courts Museum Area</a>
</td>

<td>
<a href="/wiki/File:Ala_Supreme_Court_Building_Feb_2012_01.jpg" class="image"><img alt="Ala Supreme Court Building Feb 2012 01.jpg" src="//upload.wikimedia.org/wikipedia/commons/thumb/9/92/Ala_Supreme_Court_Building_Feb_2012_01.jpg/100px-Ala_Supreme_Court_Building_Feb_2012_01.jpg" decoding="async" width="100" height="75" srcset="//upload.wikimedia.org/wikipedia/commons/thumb/9/92/Ala_Supreme_Court_Building_Feb_2012_01.jpg/150px-Ala_Supreme_Court_Building_Feb_2012_01.jpg 1.5x, //upload.wikimedia.org/wikipedia/commons/thumb/9/92/Ala_Supreme_Court_Building_Feb_2012_01.jpg/200px-Ala_Supreme_Court_Building_Feb_2012_01.jpg 2x" data-file-width="1600" data-file-height="1200"></a>
</td>

<td>
<a href="/wiki/Montgomery,_Alabama" title="Montgomery, Alabama">Montgomery</a></td>

<td>
<a href="/wiki/Montgomery_County,_Alabama" title="Montgomery County, Alabama">Montgomery</a> 
</td>

<td>Central</td>

<td>Law</td>

<td>Exhibits of Alabama judicial history and important figures, located in the Alabama Judicial Building.<sup id="cite_ref-1" class="reference"><a href="#cite_note-1">[1]</a></sup>
</td>

</tr>
<tr>
<td>Alabama Artists Gallery</td>
<td></td>   <---- Here this tag is empty so how i append "Na"
<td>Montgomery</td>
<td>Montgomery</td>
<td>Central</td>
<td>Art</td>
<td>Operated by the Alabama State Council on the Arts, located on the first floor of the RSA Tower, <a rel="nofollow" class="external text" href="http://www.arts.state.al.us/gallery.aspx">website</a>
</td></tr>


What I have tried:

Python
image_web = driver.find_elements_by_xpath('//table[@class="wikitable sortable jquery-tablesorter"]//tbody//tr//td[2]')

for i in image_web:
    print(i)


I Tried this code in selenium but its not working
Posted
Comments
Richard MacCutchan 12-Apr-22 6:18am    
"but its not working"
What does that mean? Please use the Improve question link above, and add complete details.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900