-
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] Document copying of spider arguments to attributes #2483
Conversation
Current coverage is 83.43% (diff: 100%)@@ master #2483 diff @@
==========================================
Files 161 161
Lines 8780 8780
Methods 0 0
Messages 0 0
Branches 1288 1288
==========================================
- Hits 7327 7326 -1
Misses 1205 1205
- Partials 248 249 +1
|
A great addition to the docs 👍 This is an useful feature which was barely documented. |
How about the way I document it? |
No, I think the verbosity level is just right. I like the way you documented it. |
Keep in mind that spider arguments are only strings. | ||
The spider will not do any parsing on its own. | ||
If you were to set the `start_urls` attribute from the command line, | ||
you would have parse it on you own into a list |
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.
typo: s/would have parse it/would have to parse it/
I'll amend it now.
91c4d1a
to
900b671
Compare
Keep in mind that spider arguments are only strings. | ||
The spider will not do any parsing on its own. | ||
If you were to set the `start_urls` attribute from the command line, | ||
you would have to parse it on you own into a list |
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.
on you your
own
I refer to https://github.com/scrapy/scrapy/blob/1.3/scrapy/spiders/__init__.py#L30
I'm too verbose and I need some feedback to start editing out.
Also, should we include something about calling
super()
in subclasses?