Fixed deprecation warnings with recent scrapy
Fixed compatibility with older scrapy releases