I have web page in which i have the structure like
<div>
<ul>
<li class=tree>
<a> </a>
</li>
</ul>
</div>
NOw i want to grab all those hyperlinks and put in text file in python
I have web page in which i have the structure like
<div>
<ul>
<li class=tree>
<a> </a>
</li>
</ul>
</div>
NOw i want to grab all those hyperlinks and put in text file in python
You can use the module xml.dom.minidom
, though it is not ported to certain versions of python3 if that is an issue.