Red de conocimiento informático - Problemas con los teléfonos móviles - URL de Python Scrapy Shell, por qué el valor de Response.xpath está vacío

URL de Python Scrapy Shell, por qué el valor de Response.xpath está vacío

gt; gt; gt; respuesta.xpath('html/body/title/text()')

[]

Representa la siguiente ruta

html - ---gt; html ----gt; cuerpo ----gt; título ---- gt; texto

La búsqueda falló porque aparecieron dos html. xpath('/html/body/title/text()')

3 Iniciar desde cualquier nodo

gt; gt; /text()')

gt; gt; respuesta.