Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
362 views
in Technique[技术] by (71.8m points)

xpath提取网页路径没问题,但是缺失内容?

>>> title=content.xpath('//div[contains(@id,"art_content")]/p[position()=5]/text()')
>>> title
['今日猪价持续下调,局部地区猪价趋稳,吉林、黑龙江、内蒙古三地猪价跌至15元/公斤以下。近期,受', '价格持续偏弱调整,而', '价格小幅上涨影响,猪粮比下降,养殖户', '成本上涨,但本网', '师认为后期玉米市场将面临13年产陈化粮及大量陈粮的去库存任务 ,', '承压,对养殖市场影响或有限。']

图片描述


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Reply

0 votes
by (71.8m points)

linux下没有这个错误。
武断的说一下:linux大法好


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...