Python用xpath定位正确返回的是返回空值

这是代码,目的是爬取页面网址,再从这个网址进入爬取该网址页面内容,有没有大佬帮帮忙

import requests
from lxml import html
import pandas as pd
import urllib3
urllib3.disable_warnings()
url="http://www.xinhuanet.com/"
header={ "User-Agent":"Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/57.0.2987.98 Safari/537.36 LBBROWSER" }
resp=requests.get(url,headers=header)
content_html=resp.content.decode()
dom=html.etree.HTML(content_html)
tabs=dom.xpath('//*[@id="headline"]/h1/a/@href')[0]
print(tabs)
new_url=str(tabs)
news=dom.xpath('//*[@id="p-detail"]//p[2]/text()')
print(news)

这个网站很简单,又没什么反爬,可能是你用的不熟练