当前位置:网站首页>【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”提取后面的同级节点
边栏推荐
- [debug] could not find ref wiht POC XXX
- Are you still writing the TS type code
- 笔记(五)- JVM
- String inversion
- Latex error: file ‘xxx. sty‘ not found
- datagrip 报错 “The specified database user/password combination is rejected...”的解决方法
- A number that appears only once in an array
- Modify frontsortinglayer variable of spritemask
- JS mobile terminal copy text to clipboard code
- Record (III)
猜你喜欢

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

Mysql 什么是聚集索引和非聚集索引?

JS anchor positioning can extend many functions
![[MySQL] Table constraints](/img/13/b97679cd4ca36d4b8e19acf23df404.png)
[MySQL] Table constraints

很流行的状态管理库 MobX 是怎么回事?

php的exec函数

《暗黑破坏神不朽》数据库资料站地址 暗黑不朽资料库网址

Abbkine column exkine Pro animal cell / tissue Total Protein Extraction Kit

leetcode:333. Maximum BST subtree

Forward slash "/", backslash "\," escape character "\" and file path separator cannot be clearly remembered
随机推荐
Are you still writing the TS type code
Array plus one
leetcode:333. Maximum BST subtree
磁盘序列号,磁盘ID,卷序列号的区别
How to stimulate the vitality and driving force of cultural innovation
How to realize the marketing purpose of small program integral mall
《暗黑破坏神不朽》数据库资料站地址 暗黑不朽资料库网址
笔记(四)- 多线程
数组 是否存在重复元素
Share this great God's WPF interface design series video
[nk] Niuke monthly race 51g calculation problem
Can I make up the exam if I fail the soft exam? Here comes the answer
Install MySQL on Linux system. Problems encountered in xshell
Capacity expansion mechanism of ArrayList
[1024 ways to play windows azure] 75 Fast cloud database migration seamlessly migrate alicloud RDS SQL server to azure SQL databas
A WPF developed Print dialog box -printdialogx
变量(自动变量、静态变量、寄存器变量、外部变量)与C的内存分配malloc/free、calloc/recalloc
[problem] solve the problem of websocket string length limitation. The single packet is too large
leetcode:333. 最大 BST 子树
If else is too easy to use? (understanding this article will further improve your logic)