kopia lustrzana https://github.com/dgtlmoon/changedetection.io
xpath select first instance
rodzic
1249aa7f2c
commit
7dd01d3ab4
|
@ -45,6 +45,12 @@ filter: `//h3/parent::a//@href`
|
|||
//img//@src
|
||||
```
|
||||
|
||||
# Select just the first instance of something
|
||||
```
|
||||
xpath:(//h3[contains(@class, 'PagePromo-title')])[1]
|
||||
```
|
||||
This selects just the first instance of an h3 that contains the class PagePromo-title
|
||||
|
||||
# Select by `data-` source
|
||||
|
||||
```
|
||||
|
|
Ładowanie…
Reference in New Issue