
爬虫[当当(6000条数据)XPATH]
file = csv.DictWriter(csvfile, fieldnames=["书名", "价格", "作者", "出版社", "评论", "介绍"])csvfile = open("当当文集.csv", "w", encoding="utf-8", newline="")a["介绍"] = information。author = ["空"]a["评论"] = comment。a["作者"] = author。a["出版社"] = press。a["价格"] = price。






