文章目录
python爬虫–爬取91看剧网电视剧
爬取视频必备知识
https://www.91kanju.com/vod-play/54812-1-2.html
思路
查看网页源代码;发现m3u8的URL
找到ts文件存在的位置:
代码
import requests
import re
#
# obj = re.compile(r"url: '(?P<url>.*?)',",re.S)
# url = 'https://www.91kanju.com/vod-play/54812-1-2.html'
#
headers = {
'User-Agent': 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) C