我必须使用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
得到了selectolax创建者Artem Golubin的回答 。
-> 请看一个例子。https:/dumpz.orgaBDkpZ3STSZ8。