I created a ZnCachingClient subclass of ZnClient, and I cache GET
requests responses on disk.
The overview is here:
https://gist.github.com/eMaringolo/bed9974d70c9ab8c6398149716e22b08
I don't differentiate about content type nor encoding, because for my
use case I'm only caching text/html respons
Hi Sven,
Yeap, building something would be fairly easy, I just wanted to avoid doing it.
Or to know where I should "hook" such cache lookup in the ZnClient
before performing the actual network request.
Regards,
Esteban A. Maringolo
On Wed, Dec 4, 2019 at 6:27 PM Sven Van Caekenberghe wrote:
Hi Esteban,
> On 4 Dec 2019, at 21:35, Esteban Maringolo wrote:
>
> Is there any library/setting that adds "cache" to ZnClient?
>
> I'm doing some web scrapping with ZnClient, and sometimes I request
> the same pages (~300) more than once, and I'd like to save requests
> (and time) by simply re
Is there any library/setting that adds "cache" to ZnClient?
I'm doing some web scrapping with ZnClient, and sometimes I request
the same pages (~300) more than once, and I'd like to save requests
(and time) by simply retrieving what's in the cache (since the content
doesn't change frequently).
Ma