requests-cache

Persistent cache for requests library
Download

requests-cache Ranking & Summary

Advertisement

  • Rating:
  • License:
  • BSD License
  • Price:
  • FREE
  • Publisher Name:
  • Roman Haritonov
  • Publisher web site:
  • https://bitbucket.org/reclosedev/

requests-cache Tags


requests-cache Description

Requests-cache is a transparent persistent cache for requests library.Usage exampleJust write:import requestsimport requests_cacherequests_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.Product's homepage


requests-cache Related Software