Home

Awesome

Cacho

A careless caching client optimized for scraping.

Description

Cacho is an HTTP client for scraping. It will do most of the things you want when scraping:

Most importantly, Cacho will store responses on disk so that multiple runs of your script will not hit the endpoints you are scraping. This prevents being rate limited and also makes your script faster every time.

Usage

require "cacho"

client = Cacho.new

res = client.request(:get, "https://news.ycombinator.com")

Installation

$ gem install cacho

License

See the UNLICENSE.