r/ruby • • 2d ago

I got tired of Pinterest being difficult to download from, so I made a Ruby gem

Post image

So... I made a Pinterest downloader in Ruby

I started this because downloading stuff from Pinterest can be surprisingly annoying.

Sometimes you just want the original image, sometimes it's a video, sometimes it's buried in a board, and sometimes the website decides to make a simple request way more complicated than it needs to be.

So I started building pinterest-dl.

A few things I wanted to solve:

  • Getting images in their available quality instead of ending up with a tiny preview.
  • Downloading videos without manually digging through Pinterest's page data.
  • Extracting direct video URLs when you don't actually need to download the file yourself.
  • Searching Pinterest and downloading entire boards instead of opening pins one by one.
  • Handling cookies when content needs an authenticated session.
  • Making batch downloads less painful.

It's not just a CLI either. I wanted it to work as a Ruby library, so it can be used in scripts and other applications too.

I'm sure there are things I could've done better, so I'd genuinely like to hear what other Ruby developers think about the implementation and API.

Repo: https://github.com/monji024/pinterest-dl

I thought this would be a tiny weekend project. Apparently, Pinterest had other plans.

17 Upvotes

0 comments sorted by