Open nyov opened 8 years ago
I’ve just proposed to deprecate is_gzipped
in Scrapy: https://github.com/scrapy/scrapy/pull/3718
Maybe we could implement Scrapy’s gzip_magic_number
as is_gzipped
here?
As for gunzip
, it may make sense to move it to w3lib. I think it would become the easiest answer for https://stackoverflow.com/q/1732709/939364
@redapple, @dangra, @kmike Thoughts?
Would scrapy's
gunzip
andis_gzipped
functions (scrapy/utils/gz.py
) fit in w3lib? Ifis_gzipped
would takeheaders
instead ofresponse
as argument, there is no other dependency.