How uxharshit/pinterestvideodownloader works
A small command-line Pinterest video downloader: the user enters a pin URL, the script optionally resolves a pin.it short link, extracts a video URL, converts its HLS path to an MP4 URL, and downloads the file with terminal progress. The single source file implements these stages. The README documents both supported URL forms and progress display; no separate storage or service layer is present.
Main entry points: main.py CLI workflow
Components 10
Input and extraction
- CLI workflow
main.py - Short-link resolver
main.py - Pin page fetch
main.py - Video URL extractor
main.py - HLS to MP4
main.py
Video download
- File downloader
main.py - Progress display
main.py - MP4 file
Other components
- User
Connections 13
- User → CLI workflow: enters URL
readme.md - CLI workflow → Short-link resolver: resolves short URL
main.py - Short-link resolver → Pinterest: requests redirect page
main.py - CLI workflow → Pin page fetch: fetches pin page
main.py - Pin page fetch → Pinterest: requests page
main.py - Pin page fetch → Video URL extractor: supplies page text
main.py - Short-link resolver → CLI workflow: returns pin URL
main.py - Video URL extractor → HLS to MP4: passes video URL
main.py - HLS to MP4 → File downloader: passes MP4 URL
main.py - CLI workflow → File downloader: starts download
main.py - File downloader → Pinterest: requests video stream
main.py - File downloader → Progress display: iterates download
main.py - File downloader → MP4 file: writes bytes
main.py