#coding=utf-8 import re from lxml import etree import requests response = requests.get("http://yeves.cn/") content = response.content.decode() html = etree.HTML(content) res = html.xpath('/html/body/section/aside/div[1]/div/h3/text()') print(res)