这边解析代码中有一个小bug,解析内容的时候如果按老师的写法,只能获得最后一行的内容,可考虑做以下修改:
content_s = ""
for i_content in content:
content_s = content_s + "".join(i_content.split())
douban_item['introduce'] = content_s
content_s = ""
for i_content in content:
content_s = content_s + "".join(i_content.split())
douban_item['introduce'] = content_s
2018-09-06