You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 554fd23
Browse filesBrowse the repository at this point in the historyBrowse files
Copy file name to clipboardExpand all lines: docs/scraper-reference.md
+4-4Lines changed: 4 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -87,7 +87,7 @@ Each scraper has two [filter](https://github.com/freeCodeCamp/devdocs/blob/main/
87
87
88
88
HTML filters are executed first and manipulate a parsed version of the document (a [Nokogiri](http://nokogiri.org/Nokogiri/XML/Node.html) node object), whereas text filters manipulate the document as a string. This separation avoids parsing the document multiple times.
89
89
90
-
Filter stacks are like sorted sets. They can modified using the following methods:
90
+
Filter stacks are like sorted sets. They can be modified using the following methods:
91
91
92
92
```ruby
93
93
push(*names) # append one or more filters at the end
@@ -189,7 +189,7 @@ More information about how filters work is available on the [Filter Reference](.
189
189
190
190
### Processing responses before filters
191
191
192
-
These methods are runned before filter stacks, and can directly process responses.
192
+
These methods are run before filter stacks, and can directly process responses.
193
193
194
194
*`process_response?(response)`
195
195
@@ -204,7 +204,7 @@ These methods are runned before filter stacks, and can directly process response
204
204
205
205
Parse HTTP/File response, and convert to a Nokogiri document by default.
206
206
207
-
Overrides this method if you want to modified HTML source code before Nokogiri.
207
+
Overrides this method if you want to modify HTML source code before Nokogiri.
208
208
It is useful to preserve whitespaces of code segments within non-pre blocks, because Nokogiri may delete them.
0 commit comments