I'd like to retrieve the content and href
link from an HTML tag in Python.
I'm a beginner in regex and am able to retrieve the href content in this way:
urls = re.findall('<a class="title" href="(.*?)" title', page)
When trying to extract tag's content as well, I get nothing.
urls = re.findall('<a class="title" href="(.*?)" title>(.*?)</a>', page)
How to do it the right way?
Thanks in advance.