I am working on a Python code which extracts specific elements from websites and the print it on a GUI implemented through the tkinter module. To extract specific elements from a webpage require the use of regex to which I am currently new and though I am able to obtain various elements, I am still finding it difficult to extract certain elements. One such example is presented below.
<div class="updated published time-details"><a class="url"
href="https://thetriffid.com.au/gig/chocolate-starfish-one-last-kick/"
title="CHOCOLATE STARFISH (AUS) “ONE LAST KICK”"
rel="bookmark"><span class="tribe-event-date-start">Sat Aug 3 @ 8:00
pm</span>
</a>
</div>
This is a part of HTML code from which I just need the title i.e. "Chocolate Starfish (AUS) & One Last Kick". I am using the findall method and we are not allowed to use another external library such as Beautiful Soup. So, we have to work with findall, finditer, MULTILINE and DOTALL.
How do I get the desired outcome?