I have this python code to extract the image src from an HTML website
listingid=[img['src'] for img in soup.select('[src]')]
Now would like to extract the values from the following output and store into a dictionary:
img/katalog/honda-crv-4x2-2.0-at-2001_30082022103745.jpg
img/katalog/dujual--xpander-1.5-gls-2018-manual_26072022120227.jpg
img/katalog/nissan-juke-1.5-cvt-2011-matic_19072022105636.jpg
img/katalog/mitsubishi-xpander-1.5-exceed-manual-2018_08072022134628.jpg
Need below Values:
30082022103745
26072022120227
19072022105636
08072022134628
Any approach I can take to achieve this?
Im thinking if there is any syntax in python to take 14 characters before a specific suffix(like .jpg)