class Fetcher

Defined in:

cover.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(config : Config) #

[View source]

Instance Method Detail

def get_image_url(isbn : String, provider_names : Array(String)) #

Get a single URL for a given ISBN. Try each provider in order and return the first URL found.


[View source]
def get_images_json(isbns : Array(String), provider_names : Array(String)) #

Get the JSON representation of the image URLs for an array of ISBNs.


[View source]
def save_image(isbn : String, filename : String) #

[View source]