The path labels are all correct, but the xpth crawler result is empty.

run

import requests
from lxml import html                 -sharp lxml.html

url = "https://car.autohome.com.cn/config/series/614.html"
r = requests.get(url).content
r_tree = html.fromstring(r)           -sharp responser

for i in r_tree.xpath("//div[@class="conbox"]"):     -sharp xpath
    -sharp 
    o= i.xpath("table[@id="tab_0"]/tr[@id="tr_14"]/td[1]/div/text()")
    print (o)
Mar.17,2021

Selector=etree.HTML Selector.xpath

MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1b37070-2c074.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1b37070-2c074.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?