Persistent cache for requests library
Project description
requests-cache
Requests-cache is a transparent persistent cache for requests library.
Usage example
Just write:
import requests
import request_cache
request_cache.configure('demo_cache')
And all responses with headers and cookies will be transparently cached to demo_cache.sqlite database. For example, following code will take only 1-2 seconds instead 10, and will run instantly on next launch:
for i in range(10):
requests.get('http://httpbin.org/delay/1')
It can be useful when you are creating some simple data scraper with constantly changing parsing logic or data format, and don’t want to redownload pages or write complex error handling and persistence.
Links
Documentation at readthedocs.org
Source code and issue tracking at BitBucket.org.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file requests-cache-0.1.0.zip.
File metadata
- Download URL: requests-cache-0.1.0.zip
- Upload date:
- Size: 27.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ddcc4e962921423b92ea790509d3a7c3d29a57231ff9709b31310fe9ce44414e
|
|
| MD5 |
aa04501916a101c0687115c58d924108
|
|
| BLAKE2b-256 |
78dbc933a7459a45b0efbd5fd1382f9484915b2505127e4de4c7619c846d7c4d
|
File details
Details for the file requests-cache-0.1.0.tar.gz.
File metadata
- Download URL: requests-cache-0.1.0.tar.gz
- Upload date:
- Size: 17.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
400ba8ee3b7d95fc437c293a2bd0e3d6e1102a5b45fac3b29fb144ebbbeb5723
|
|
| MD5 |
05067859804f3d51ff7255085db7114c
|
|
| BLAKE2b-256 |
0812f10ab0bbcb2b822f5441b9e14fa2d3e6c9a4034fcd6dbc47c2be28d2084c
|
File details
Details for the file requests-cache-0.1.0.win32.exe.
File metadata
- Download URL: requests-cache-0.1.0.win32.exe
- Upload date:
- Size: 208.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
162a98caa5cfeb00c2d635758ab2978d3d3b2f07ce021d18f1efc819f747c13d
|
|
| MD5 |
17c96229c026d43ddffaf7d137ff9ff0
|
|
| BLAKE2b-256 |
dd44f70abd8aa0a152a6bad298e9706c7f8c6f3961153cbc0212827a7fe52b5c
|