1

Python爬虫编程思想(44):XPath实战:节点轴选择

 2 years ago
source link: https://blog.csdn.net/nokiaguy/article/details/120679608
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
neoserver,ios ssh client

Python爬虫编程思想(44):XPath实战:节点轴选择

专栏收录该内容
50 篇文章 2 订阅 ¥29.90 ¥99.00

        XPath提供了很多节点轴选择方法,包括获取祖先节点、兄弟节点、子孙节点等。本节将介绍XPath中一些常用的节点轴。

下面的例子使用XPath和索引得到特定的<a>节点,并输出<a>节点的文本。


Recommend

About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK