当前位置:网站首页>【Xpath】使用following-sibling获取后面的同级节点
【Xpath】使用following-sibling获取后面的同级节点
2022-06-10 21:15:00 【micromicrofat】
以下面html代码为例子,尝试使用xpath提取“2022年06月07日”
<div class="news_body">
<ul class="news_tel_z">
<div class="news_tel">
2022年6月7日
</div>
<div class="news_tel_2" style="height: auto">
<div class="news_laiyuan">来源:
</div> Apple
<div class="news_laiyuan2">
更新时间:
</div>
2022年06月07日
<br>
<div class="news_laiyuan">关键字:
</div>WWDC 2022
</div>
<div class="news_tex" style="margin-top: 10px;">
<div style="background-color: #EAF0F2; margin: 6px 0px; padding: 15px; border: solid 1px #95B2C0; line-height: 24px; overflow: auto;">
<p style="text-indent:2em;">
</p>
</div>
<p style="color:#9e9e9f; padding-top:8px; padding-left:5px;">
</p>
</div>
</ul>
</div>


关键点在于使用“following-sibling”提取后面的同级节点
边栏推荐
- 在D天内送达包裹的能力[抽象类二分--抽象判定方式]
- Whether there are duplicate elements in the array
- Cordova plugin /jpush phonegap Aurora push_ Local push_ Message push
- JS anchor positioning can extend many functions
- Constructing the implementation strategy of steam education for children
- Kdd2022 | neural network compression of depth map based on antagonistic knowledge distillation
- Pytorch 安装超简单
- 【MySQL】表数据的增删查改(DML)
- The system needs to scan all the files and try to identify the cover of the video
- Latex error: file ‘xxx.sty‘ not found
猜你喜欢

What are MySQL clustered indexes and nonclustered indexes?
![Ability to deliver packages within D days [abstract class dichotomy -- Abstract judgment method]](/img/16/026c017e1c54d580fa2d237aa4605c.png)
Ability to deliver packages within D days [abstract class dichotomy -- Abstract judgment method]

如何激发文化创新的活力和驱动力

【MySQL】表结构的增删查改操作(DDL)

Before we learn about high-performance computing, let's take a look at its history
![[debug] could not find ref wiht POC XXX](/img/01/5fdbd3e9902458be754280464bd923.png)
[debug] could not find ref wiht POC XXX

Modify frontsortinglayer variable of spritemask

ThinkPHP v6.0. X deserialization vulnerability recurrence
![在D天内送达包裹的能力[抽象类二分--抽象判定方式]](/img/16/026c017e1c54d580fa2d237aa4605c.png)
在D天内送达包裹的能力[抽象类二分--抽象判定方式]

【Debug】could not find ref wiht poc XXX解决
随机推荐
记录(二)
数组 旋转数组
C语言qsort()函数的使用(详解)
Ceph分布式存储集群Pool资源池的概念以及使用
String analysis and use
变量(自动变量、静态变量、寄存器变量、外部变量)与C的内存分配malloc/free、calloc/recalloc
修改SpriteMask 的 frontSortingLayer 变量
SQL Server row to column (pivot), column to row (unpivot)
Abbexa low sample size chicken lysozyme C (Lyz) ELISA Kit
Record (II)
Detailed explanation of MySQL range query optimization scenario instances
Visio 转为高质量PDF
GMPNN:Drug-drug interaction prediction with learnable size-adaptive molecular substructures.
PHP pseudo protocol implementation command execution details
数组 移动0
ICML2022 | Sharp-MAML:锐度感知的模型无关元学习
罗永浩:我要是负责人 能让苹果产品上去三个台阶不止
Summary of common mysql8 commands in centos7 environment
ThinkPHP v6.0. X deserialization vulnerability recurrence
Apache相关的几个安全漏洞修复