Created
February 13, 2019 10:40
-
-
Save pythonhacker/619a46a0119d01e09b61f88891273a7c to your computer and use it in GitHub Desktop.
Find Scrapy HTTP cache directory
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ scrapy shell -s HTTPCACHE_ENABLED=True | |
2017-02-28 10:41:41 [scrapy.utils.log] INFO: Scrapy 1.3.2 started (bot: httpbin) | |
(...) | |
>>> from scrapy.utils.misc import load_object | |
>>> storage = load_object(settings['HTTPCACHE_STORAGE'])(settings) | |
>>> storage.cachedir | |
'/home/paul/scrapy/httpbin/.scrapy/httpcache' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment