requests-cache Requests 的缓存库 项目简介
requests-cache 是为 Python 的 Requests 库提供了持久化缓存支持的 Python 模块。示例代码:import requests
import requests_cache
requests_cache.install_cache('demo_cache')
for i in range(10):
requests.get('http://git.oschina.net/ld/J2Cache')
import requests_cache
requests_cache.install_cache('demo_cache')
for i in range(10):
requests.get('http://git.oschina.net/ld/J2Cache')