Recommended Answers
Jump to PostThe problem is that your html variable is just a string containing this value
https://www.daniweb.com/software-development/python/threads/492669/how-to-print-only-the-content-of-all-tags-from-a-url-page
and not the actual HTML code ... the library that you have imported urllib2 .. use it to get the code from that page
Read
Jump to PostUse regular expressions Click Here
No no no just to make it clear :)
Have to post this link again.
Use a parser Beautifulsoup or lxml.from bs4 …
All 8 Replies
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.