Image Loaders
PexelsAPIWrapper
This notebook will demonstrate how to use the PexelsAPIWrapper
to scrape the Pexels database for image data.
Initialization
To use this wrapper, you must sign up for an API key by registering on the Pexels website.
Retrieving Results
The search
function can be used to retrieve results by passing in a prompt. By default, only 10 images are retrieved, but you can pass in a custom number of images to retrieve.
A Document is returned. For reference, we provide the images returned below: