how do i get the audiosrc url?

The following might work where you use css selectors to target the audiosrc attribute of element with class pa-player (part of multi-valued class)

audio = soup.select_one('.pa-player[audiosrc]')
message_link = 'Audio link not found'

if audio:
    message_link = audio['audiosrc']

CLICK HERE to find out more related problems solutions.

Leave a Comment

Your email address will not be published.

Scroll to Top