从字符串中获取m3u8地址
import re
string = 'var url = "https://cdn77-vid.xnxx-cdn.com/2a261b121c8e862b-1/hls.m3u8dasda"'
regular_one = re.compile(r'[a-zA-Z]+://[^\s]*.m3u8')
regular_two = re.compile(r'[a-zA-Z]+://[^\s]*\.m3u8')
regular_three = re.compile(r'[http|https]+://[^\s]*\.m3u8')
result = re.findall(regular, string)
print(result)