chevyw
- chevyw 2018-03-24 已签到连续签到1天,获得了5个金钱
- chevyw 2018-03-19 已签到连续签到1天,获得了5个金钱
- chevyw 2018-03-02 已签到连续签到1天,获得了5个金钱
- chevyw 2018-02-01 已签到连续签到1天,获得了5个金钱
- chevyw 2018-01-30 已签到连续签到1天,获得了5个金钱
- chevyw 2018-01-27 已签到连续签到5天,获得了20个金钱
- chevyw 2018-01-26 已签到连续签到4天,获得了20个金钱
本身“php123”不是节点,xpath很难选吧!
如果是渲染出来的情况,jquery比较方便:
console.log($.trim($('.name').html().split('< /span>')[1]));@pengcx
php方法:
$html='****';
$reg='/<\/span>(.*?)<\/div>/';
preg_match($reg,$html,$result);
print_r($result[0]);python方法:
root = html.fromstring('***')
strval = root.xpath("//div[@class='name']")
print(strval.text_content())- chevyw 回答了问题 在HTML中选取内容
本身“php123”不是节点,xpath很难选吧!
如果是渲染出来的情况,jquery比较方便:
console.log($.trim($('.name').html().split('< /span>')[1])); - chevyw 2018-01-25 已签到连续签到3天,获得了15个金钱