python3.6 怎么提取<dt>与<dd>标签里面的内容并且保存到excel?

链接:https://list.jd.com/list.html?cat=670,671,1105&ev=exbrand_8551&page=
1&delivery=1&delivery_daofu=0&sort=sort_totalsales15_desc&trans=1&JL=4_11_0#J_main

https://item.jd.com/5270331.html?dist=jd#product-detail

想把爬取到结果保存的excel,如图3所示:

1https://img3.mukewang.com/5b4c5d5d00018e6002770299.jpg

2https://img4.mukewang.com/5b4c5d6c000114c002750265.jpg

3https://img2.mukewang.com/5b4c5d790001c3b203650063.jpg

噜噜哒
浏览 311回答 1
1回答

慕桂英3389331

请求网页,分析页面,保存即可请求网页 可以使用urllib系列,或者requests分析页面 可以使用htmlparser,beautifulsoup4,还有正则等等保存 可以直接'wb'到csv文件,也可以使用xlrd、xlwt、xlutils等库操作excel具体可能还会遇到一些问题,自己搜索
打开App,查看更多内容
随时随地看视频慕课网APP