摘要:
import os L=[] def delete_file(file): if os.path.isdir(file): files=os.listdir(file) for x in files: x=os.path.join(file,x) if os.path.isfile(x): prin 阅读全文
摘要:
本项目简单介绍 爬取网易中的五大板块新闻:国内、国际、军事、航空、无人机 初始url是:https://news.163.com/,板块url类似:https://news.163.com/domestic/ 从初始url获取各个板块url地址,然后获得板块中系列新闻的标题 title 和详情 ur 阅读全文