从 lxml 导入 html 导入请求 导入 json
page = requests.get('https://libertyvf.tv/series/') 树 = html.fromstring(page.content)
serieLinks = tree.xpath("//div[@class='divstreaming']/a/@href") 打印('serieLinks',serieLinks)
page = requests.get(serieLinks[0]) 树 = html.fromstring(page.content)
episodeLinks = tree.xpath("//a[@class='num_episode']/@href") 打印('episodeLinks',episodeLinks)
page = requests.get(episodeLinks[0]) 树 = html.fromstring(page.content)
streamingIdVf = tree.xpath("//div[@heberger='uqload' and @title='Regarder sur uqload en VF']/@streaming") 打印('streamingIdVf',streamingIdVf)
page = requests.get("https://libertyvf.tv/v2/video.php?id=" + StreamingIdVf[0] + "&type=series") print('页面', page.text)
parsed_json = (json.loads(page.text)) 打印('parsed_json',parsed_json)
嵌入 = parsed_json['bande']
打印('嵌入',嵌入)
如果您想了解 VOSTFR 系列高级品质,请访问 Vostfr 流媒体维护者的 Profitez d'un 大型目录系列,所有流媒体高清和免费内容均可用,无需刻字。欢迎并关注 Vostfr-streamings 无限观看的剧集!