VMware(Plus 8)scrapy 2

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 */ 
posted @ 2017-10-07 13:48  兔子的尾巴_Mini  阅读(117)  评论(0)    收藏  举报