如何使用python的selectolax解析器在html中查找视频标签?

问题描述 投票:0回答:1

我必须使用python的selectolax.parser包找到html页面中的所有视频标签,以便将它们下载到磁盘中。我找不到这种特殊用法的例子。

谢谢。

例如:这是我要解析的html:例如,这是我要解析的html。

\<video width="320" height="240" controls=""\>\n\t\t<source src="movie1.mp4" type="video/mp4">\n\t\t<source src="movie.ogg" type="video/ogg"> </video>

我需要用selectolax得到img的 "src

python html5-video html-parsing
1个回答
0
投票

得到了selectolax创建者Artem Golubin的回答 。

-> 请看一个例子。https:/dumpz.orgaBDkpZ3STSZ8。

© www.soinside.com 2019 - 2024. All rights reserved.