网站介绍:文章浏览阅读97次。您应该在第8个td标记中访问a标记的href属性:import csvimport urllib2from bs4 import BeautifulSouprecords = []for index in range(39):url = get_url(index) # where is the formatting in your example happening?response = ur..._将html 转化成beautifulsoup
- 链接地址:https://blog.csdn.net/weixin_32258919/article/details/118244456
- 链接标题:html导出.csv在一列,BeautifulSoup/Python-将HTML表转换为CSV并获取一列的ref-CSDN博客
- 所属网站:blog.csdn.net
- 被收藏次数:4752
- 网站标签:将html 转化成beautifulsoup