mirror of
https://github.com/scrapy/scrapy.git
synced 2025-02-23 17:23:44 +00:00
- changing indentation so contexts are recognized
This commit is contained in:
parent
9f0e9e0e66
commit
96f05efb7d
@ -22,23 +22,23 @@ XPath Selectors documentation] says (bolding by me):
|
||||
"When you’re scraping web pages, the most common task you need to perform is
|
||||
to **extract** data from the HTML source."
|
||||
|
||||
..
|
||||
..
|
||||
|
||||
"Scrapy comes with its own mechanism for **extracting** data. They’re called
|
||||
``XPath`` selectors (or just “selectors”, for short) because they “select”
|
||||
certain parts of the HTML document specified by ``XPath`` expressions."
|
||||
|
||||
..
|
||||
..
|
||||
|
||||
"To actually **extract** the textual data you must call the selector
|
||||
``extract()`` method, as follows"
|
||||
|
||||
..
|
||||
..
|
||||
|
||||
"Selectors also have a ``re()`` method for **extracting** data using regular
|
||||
expressions."
|
||||
|
||||
..
|
||||
..
|
||||
|
||||
"For example, suppose you want to **extract** all <p> elements inside <div>
|
||||
elements. First you get would get all <div> elements"
|
||||
|
Loading…
x
Reference in New Issue
Block a user