Aan de slagGa gratis aan de slag

Find a more elegant XPATH alternative

Given the rather verbose CSS selector ul.list > li:nth-child(5), ul.list > li:last-child, ul.list > li.special, what's a possible XPATH alternative that selects exactly the same elements? Assume that ul.list has six li children in total.

Deze oefening maakt deel uit van de cursus

Web Scraping in R

Cursus bekijken

Praktische interactieve oefening

Zet theorie om in actie met een van onze interactieve oefeningen.

Begin met trainen