码迷,mamicode.com
首页 > 系统相关 > 详细

VMware(Plus 8)scrapy 2

时间:2017-10-07 16:13:37      阅读:207      评论:0      收藏:0      [点我收藏+]

标签:always   ber   ice   UI   har   name   html   mini   ref   

XPath :( html sign) (fast reaction)

eg:

<html xmlns=http://www.w3.org/1999/xhtml> <head> <meta charset=utf-8> <meta name=referrer content=always> <meta http-equiv=X-UA-Compatible content="IE=edge,chrome=1"> <meta name=viewport content="width=device-width,initial-scale=1.0,minimum-scale=1.0,maximum-scale=1.0,user-scalable=no"> <title>专家析云南“火流星”空爆事件:不能算“行星撞地球”</title> <link rel=stylesheet type=text/css href="https://ss0.bdstatic.com/5aV1bjqh_Q23odCf/static/superlanding/css/landing_min_6b5661eb.css"> </head> <body> <script>
  /* eslint-disable */ 

 

"/" from head to search    eg:/html/head/title  :  

专家析云南“火流星”空爆事件:不能算“行星撞地球”

 

text()

@(html sign)

/html/head/title/text()

 

"//":all the html sign  eg://li

                               eg:li[@class=""]/a/@href

 

 

 

 

 

 

 

 

<html xmlns=http://www.w3.org/1999/xhtml> <head> <meta charset=utf-8> <meta name=referrer content=always> <meta http-equiv=X-UA-Compatible content="IE=edge,chrome=1"> <meta name=viewport content="width=device-width,initial-scale=1.0,minimum-scale=1.0,maximum-scale=1.0,user-scalable=no"> <title>专家析云南“火流星”空爆事件:不能算“行星撞地球”</title> <link rel=stylesheet type=text/css href="https://ss0.bdstatic.com/5aV1bjqh_Q23odCf/static/superlanding/css/landing_min_6b5661eb.css"> </head> <body> <script>
  /* eslint-disable */ 

VMware(Plus 8)scrapy 2

标签:always   ber   ice   UI   har   name   html   mini   ref   

原文地址:http://www.cnblogs.com/rabbittail/p/7634617.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!