How do I extract data from HTML page using Python3.1?
-
29-10-2019 - |
Question
I have about 1000 pages locally stored on the disk containing something similar to the below example.
<html>
<body>
<li>User Dave<sup><a href="" title="" onClick="" class="">?</a></sup></li>
<li>UserID<sup><a href="" title="" onClick="" class="">?</a></sup>: 00000001</li>
</body>
</html>
I need help figuring out how to extract string Dave fromt the 3rd line and to load it up into UserName list. Also, I need to extract 00000001 from the fourth line and load it up in UserID list.
Please help, thanks...
No correct solution
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow