已采納回答 / 暮日孤影
老師的多行處理是錯(cuò)的,
content?=?i_item.xpath(".//div[@class='info']/div[@class='bd']/p[1]//text()").extract()這個(gè)解析出來是一個(gè)兩個(gè)元素的列表,兩個(gè)元素分別是&".jbr&(i_的前后兩段,因此下面這段代碼...
2019-06-08
最新回答 / 慕粉7538698
import?MySQLdb from?douban.settings?import?mysql_host,?mysql_port,?mysql_user,?mysql_passwd,?mysql_db_name #?Define?your?item?pipelines?here # #?Don't?forget?to?add?your?pipeline?to?the?ITEM_PIPELINES?setting #?See:?https://...
2019-05-23