Find the correct CSS equivalent
Some XPATH queries have a direct equivalent in CSS.
Since you already know quite some CSS selectors, it might help to always mentally translate a path notation into the analogous CSS selector.
In this example, three different classes of CSS selectors are provided. For example, the first class type.class
could be a CSS selector like div.section
that would select all div
elements with the section
class.
Cet exercice fait partie du cours
Web Scraping in R
Exercice interactif pratique
Passez de la théorie à la pratique avec l’un de nos exercices interactifs
