-
Notifications
You must be signed in to change notification settings - Fork 10.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[MRG+1] [Docs] CrawlSpider: update Rule docs #3712
Conversation
Codecov Report
@@ Coverage Diff @@
## master #3712 +/- ##
==========================================
- Coverage 85.59% 85.52% -0.08%
==========================================
Files 164 169 +5
Lines 9545 9830 +285
Branches 1430 1500 +70
==========================================
+ Hits 8170 8407 +237
- Misses 1128 1168 +40
- Partials 247 255 +8
|
Also updated the
|
:class:`~scrapy.http.Request` objects (or any subclass of them). | ||
the specified link extractor. This callback receives a :class:`~scrapy.http.Response` | ||
as its first argument and must return either a single instance or an iterable of | ||
:class:`~scrapy.item.Item`, ``dict`` and/or :class:`~scrapy.http.Request` objects |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍
docs/topics/spiders.rst
Outdated
the specified link extractor. This callback receives a :class:`~scrapy.http.Response` | ||
as its first argument and must return either a single instance or an iterable of | ||
:class:`~scrapy.item.Item`, ``dict`` and/or :class:`~scrapy.http.Request` objects | ||
(or any subclass of them). |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I still wonder if we should mention link_text
in the documentation about the callback, since users will most often need to access that meta field from their callback.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I agree, but I was concerned about duplicating the same content. I ended up basically copying the same text from the previous part, but adding "As mentioned above" to make it clear that it's not an accidental duplication but an intended remark.
I think these changes are improvement to what we have in master, so +1 to merge them as-is. |
Fixes #3711
More information at https://stackoverflow.com/q/55450472/939364