friendlypins.thumbnail module

Primitives for operating on Pinterest pins

class friendlypins.thumbnail.Thumbnail(data)[source]

Bases: object

Abstraction around a Pin’s thumbnail

Parameters

data (dict) – Raw Pinterest API data describing a thumbnail

property height

The height of the thumbnail image, in pixels

Type

int

property url

Source URL where the thumbnail image can be found

Type

str

property width

The width of the thumbnail image, in pixels

Type

int