requests-cache
Requests-cache is a transparent persistent cache for requests library.
Usage example
Just write:
import requests
import requests_cache
requests_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 GitHub.
Metadata
Release files for requests-cache 0.1.3
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distributions (sdists)
| File | Size | Uploaded | |
|---|---|---|---|
| requests-cache-0.1.3.zip | 29.8 kB | Details | |
| requests-cache-0.1.3.tar.gz | 19.7 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| requests-cache-0.1.3.win32.exe | Details |
Total release size: 258.2 kB
Release files / requests-cache-0.1.3.zip
| Download URL | requests-cache-0.1.3.zip |
|---|---|
| Size | 29.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
a74d402a8f0a147b983b68046b5718f86100c84144a4d4fb96d3fdb66d43a98c
|
|
BLAKE2b-256 checksum How to use checksums |
f469bd4948eb35744a856e063f9caa1373bf18815283d7dd599f34ce104ab68e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Release files / requests-cache-0.1.3.tar.gz
| Download URL | requests-cache-0.1.3.tar.gz |
|---|---|
| Size | 19.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
1331e42dafd378a8cf2618bb3dc4978a6e5e375c3666718d39c2d5336ec14622
|
|
BLAKE2b-256 checksum How to use checksums |
37e8f3fc91ec93d06ef3be4bb0cecc5fce4b0fdacd2a120fa42042b6f1cd7a2b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Release files / requests-cache-0.1.3.win32.exe
| Download URL | requests-cache-0.1.3.win32.exe |
|---|---|
| Size | 208.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
e6ca2ab09bb3da225c02deceb6d58ff16b2acfa54c67cb435ae6056db63a3866
|
|
BLAKE2b-256 checksum How to use checksums |
06f6f1c2e80aec3a216b6fcb75e85c710f4887583805a9941efce877c0f0d10c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |