set_crawler not working neither warning deprecated?
See original GitHub issueclass test(scrapy.Spider):
name = 'test'
start_urls = ['http://httpbin.org']
def set_crawler(self, crawler):
super(test, self).set_crawler(crawler)
print(999999999999999)
def parse(self, response):
print('ok')
considering fixing or removing it?
Issue Analytics
- State:
- Created 5 years ago
- Comments:7 (7 by maintainers)
Top Results From Across the Web
How can I get rid of deprecated warnings in ... - Stack Overflow
-Wno-deprecated will remove all deprecated warnings ... I get the warning only on return b(); and if someone was using a they will...
Read more >org.jbake.app.configuration.DefaultJBakeConfiguration ... - Tabnine
@Deprecated public Renderer(ContentStore db, File destination, File templatesPath, CompositeConfiguration config) { this(db, new JBakeConfigurationFactory() ...
Read more >glue - Go Packages
Package glue provides the client and types for making API requests to AWS Glue. Defines the public endpoint for the Glue service.
Read more >Magento 2 Cache Warmer Extension User Guide - Mirasvit
This functionality will work only for Built-in mode (will not work for Varnish). Go to System > Page Cache Warmer > Efficiency Report....
Read more >LiteSpeed Cache – WordPress plugin
+ This service is not provided by the LSCache plugin, nor is it guaranteed to be installed by your service provider. However, the...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
The code never issues a warning, because it is not an user who should call
set_crawler
- Scrapy used to call it. Now Scrapy usesfrom_crawler
method instead ofset_crawler
. If user definedset_crawler
method in a Spider subclass, this method just stopped working as a mean to do some work on spider init, without any deprecation warnings - warning is only displayed when a method is called, but Scrapy stopped to call it. This happened a while ago though, I don’t think we need to fix that.don’t remember, maybe from scrapy’s source code or other’s comments. I might open this issue to say
there's old code need to remove
. but it’s not in the master branch now.maybe mistake and this issue can be closed. thanks.