scrapy python xpath相关问题,scrapyxpath,Response.bod
scrapy python xpath相关问题,scrapyxpath,Response.bod
Response.body中有
<tr> <td style="vertical-align:top;">Copper, Cu</td> <td class="dataCell" style="vertical-align:top;"><= 0.03 %<span class="dataCondition"></span></td> <td class="dataCell" style="vertical-align:top;"><= 0.03 %<span class="dataCondition"></span></td> <td class="dataComment" style="vertical-align:top;"></td></tr>
之后运行
**response.xpath('/tr').extract()
只能获取到**
<tr> <td style="vertical-align:top;">Copper, Cu </td> <td class="dataCell" style="vertical-align:top;"></td> <td class="dataCell" style="vertical-align:top;"></td> <td class="dataComment" style="vertical-align:top;"></td></tr>
的出来的结果
<= 0.03 % 和 <span></span>消失不见,为什么呢?
可能是异步加载的数据
编橙之家文章,
相关内容
- 求Python剥离Django中db, orm模块的方法,djangoorm,SQLAlchemy太
- python捉虫想得到onclick的链接要怎么写?,python捉虫,&
- Python项目可持续集成环境哪个好,python项目可持续,以前
- python内十六进制形式下的'0x2d'和'\x2d'如何理解,0x2dx2
- 请问pyinstaller打包exe文件在中文目录下面无法运行何解
- python脚本中怎么用virtualenv激活指定环境?,pythonvirtu
- linux配置cron定时执行脚本首行一定要明确指定解释程序
- 如何控制WEB开发服务器数据下载数据量过大问题,web过
- Python如何得到网页审查元素的代码,python审查,网页源代
- python删除dict空值元素报错RuntimeError原因,dictruntimeerr
评论关闭