Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
463 views
in Technique[技术] by (71.8m points)

求助,异步加载中,#document内的元素如何定位

爬取一个网站,动态加载的,点击“更多”会出现数据,解析时发现里面嵌套了两个#document,如图,我想爬取的数据在第二个#document里面,但是里面包含的任何元素都定位不到,我用的是beautifulsoup,请问这种情况如何解决呢?谢谢
image


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)

里面的内容在 iframe 里面,,参考 https://www.pythonheidong.com/blog/article/297201/


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...