python - 用BeautifulSoup如何提取data-lazy-src属性?
阿神
阿神 2017-04-18 10:31:02
0
1
803

<img alt="看图猜国籍啦~" src-src="http://wx4.sinaimg.cn/mw600/7... src="http://www.xrr.com/wp-content...

用BeautifulSoup如何提取src-src属性?
我提取src用['src']可以直接提取,用['src-src']就不行了,搞了一个早上都不行,烦~

阿神
阿神

闭关修行中......

reply all(1)
Peter_Zhu
img['src-src']

I tried it and it can be extracted. Are you sure it is in your source code? Maybe it is loaded asynchronously

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!