Downloading from pinterest board

Does anyone have code to download images from a pinterest board? Or even images from Instagram? I have many images on my pinterest boards but I’m stuck downloading them one by one.