item['xb'] = response.xpath('//*[@id="Sex"]/option[contains(@selected,"selected")]/@value').extract_first()
python爬虫获取下拉框选中值
最新推荐文章于 2024-06-27 19:38:44 发布
item['xb'] = response.xpath('//*[@id="Sex"]/option[contains(@selected,"selected")]/@value').extract_first()