In this live video, I will walk you through XPATH. By the end of this video, you would be able to write XPATHs like a pro :-)
Chapter markers courtesy: Sasha Radkova
05:50 root element /
06:20 (only the direct) child /
07:23 find element with //
09:38 (great)grandchildren //
16:14 change directory to the parent (one level up)
18:36 attributes @
19:53 element node vs attribute node
21:10 get the text of an element node with the function text()
23:38 filtering to select the 2nd element
27:12 filtering by a specific attribute a[@id="first"]
31:00 find all elements with an attribute //a[@class]
32:09 find an element by the text in it
32:51 for exact or partial match
37:00 select all descendants
37:45 specific descendants
38:20 any element that contains a specific class
39:45 child
40:55 get the last element of a selection
46:30 custom attributes can also be filtered
52:09 sibling
expresiones XPath
what is xpath
xpath in scrapy
xpath in python scrapy
#scrapy #xpath #xpathselector #webscraping
-~-~~-~~~-~~-~-
Please watch: "Making Scrapy Playwright fast and reliable"
-~-~~-~~~-~~-~-