limkokhole / pinterest-downloader

Download all images/videos from Pinterest user/board/section.
MIT License
278 stars 47 forks source link

Feature request - exclude/ignore board/section of user #23

Closed vadtec closed 1 year ago

vadtec commented 1 year ago

Excluding a particular board of a user would be handy. For example, my daughter and I share a board where we pin common interests. There is no need to download the same board twice. Adding an option to skip a particular board (and all its sections obviously) would eliminate this issue.

Maybe something like -i "board-or-section-name-here" with corresponding --ignore parameter.

So:

python3 pinterest-downloader.py -d ~/images -i ignore-shared-section -rs user-here

limkokhole commented 1 year ago

You can just symlink the same folder, e.g. to make personB(your daughter) reuse your(personA) folder :

Windows cmd (Delete/move the desired broad/section folder in personB first. Right-click on cmd and run as administrator): board: mklink /D "%USERPROFILE%\Downloads\personB\username\board_name" "%USERPROFILE%\Downloads\personA\username\board_name"

section: mklink /D "%USERPROFILE%\Downloads\personB\username\board_name\section_name" "%USERPROFILE%\Downloads\personA\username\board_name\section_name"

Powershell: board: New-Item -ItemType SymbolicLink -Path "$env:USERPROFILE\Downloads\personB\username\board_name" -Target "$env:USERPROFILE\Downloads\personA\username\board_name"

section: New-Item -ItemType SymbolicLink -Path "$env:USERPROFILE\Downloads\personB\username\board_name\section_name" -Target "$env:USERPROFILE\Downloads\personA\username\board_name\section_name"

Linux: board: ln -s ~/Downloads/pin/personA/username/board_name/section_name ~/Downloads/pin/personB/username/board_name/section_name

section: ln -s ~/Downloads/pin/personA/username/board_name ~/Downloads/pin/personB/username/board_name

I try to avoid making the script more complex with added unnecessary (or having workarounds) functionality, as it might become harder to maintain in the future. Thanks.