Open GeorgeA92 opened 3 months ago
Merging #6218 (b8f8960) into master (6f73dc0) will increase coverage by
0.18%
. Report is 88 commits behind head on master. The diff coverage is100.00%
.
I haven't read the original ticket recently, but why is this feature optional?
This is how it works on current version of PR
I‘m slightly hesitant about setting a spider attribute from a middleware, and I wonder if maybe it should be set from a different place or in a different place (e.g. the crawler), bun in general I’m find with the approach.
@kmike Any thoughts on the general approach? Should @GeorgeA92 go on with tests and docs?
Hey! My main worry is the obscure API, which we'd need to document & support in the future. It'd require good documentation to explain a line like
self.cookie_jars[None]._cookies["quotes.toscrape.com"]["/"].get("session")
It also need an access to a private property (._cookies).
Hey! My main worry is the obscure API, which we'd need to document & support in the future. It'd require good documentation to explain a line like
self.cookie_jars[None]._cookies["quotes.toscrape.com"]["/"].get("session")
It also need an access to a private property (._cookies).
Another option is to update scrapy.http.Cookies.CookieJar
class to add.. more convenient way to interact with Cookiejar
Aimed to fix https://github.com/scrapy/scrapy/issues/1878 based on suggestion from https://github.com/scrapy/scrapy/issues/1878#issuecomment-200907033