![]() |
1
beordle 2013-08-30 22:38:48 +08:00 ![]() "".join(app.select('./li//text()').extract_unquoted())
|
![]() |
2
brucebot OP @beordle 这样出来的结果是
{"description": "\n I visited the local robotic club and recorded the preparation for the up-coming competition. I was invited to make a speech there...\n“ []不见了? |
![]() |
3
beordle 2013-08-30 22:56:25 +08:00 ![]() 加上就好了嘛~
item['description'] = ["".join(app.select('./li//text()').extract_unquoted())] 如果需要/n换行的话 item['description'] = "".join(app.select('./li//text()').extract_unquoted()).split('\n') 可能还有一些细节问题。hack下即可 |