coninfos = response.xpath('//*[@id="app"]/div[3]/div/div[2]/main/div[2]/div/div')
datadict = {"状态":"status","货币符号":"symbol","开始日期":"start_date","结束日期":"end_date","目标下限":"soft_cap","目标上限":"hard_cap","初始价格":"initial_price","代币数":"token_supply","募集金额":"collection_amount"}
for coninfo in coninfos:
key = coninfo.xpath('./div[1]/text()').get()
value = coninfo.xpath('./div[2]/text()').get()
item[datadict[key]] = value
网友评论