simply like this :
import requests
import re
def exp(url):
try:
url = url.replace('
', '').replace('
', '')
op = requests.get(url , timeout=7).content
if ".mp3" in op:
print ("thanks it's valid link ")
filter = re.findall('<meta property="og:audio" content="(.*?)"/>', str(op))[0]
print ("[+] Found " + filter)
else:
print ('-> ' + url)
except:
print ("timeOut -> " + url)
pass
a = raw_input("link : ")
exp(a)
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…