limkokhole / pinterest-downloader

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

Cannot download board/section pins #35

Open ValentinDORMANN opened 5 months ago

ValentinDORMANN commented 5 months ago

My pinterest board has the following structure:

All my boards are secret board so i must add --cookies cookies.txt argument. When I execute pinterest-downloader.py <user_name> I can recursively download pins children of user_name (pin_0.1), pins of boards (pin_1.1, pin_2.1) but I cannot download pins from sections (pin_11.1, pin_12.1, pin_21.1). Executing pinterest-downloader.py <user_name>/<board_1> or pinterest-downloader.py <user_name>/<board_1>/<section_11> seems not function with error

[✖] Get this board/section failed : <user_name>/<board_1>
[✖] No item found.
Please ensure your username/boardname/[section] or link has media item.
 Abort.
[i] Time Spent: 0:00:00

I use python 3.12.4 on Windows 10 x64.

Jon1Games commented 1 month ago

Same problem, a fix for that would be nice.

OisinHick commented 1 month ago

Where are you getting your cookies file from?

ValentinDORMANN commented 1 month ago

Where are you getting your cookies file from?

I use EditThisCookies extension on chrome. Login to your pinterest page where you have your boards. Open debugger console (Press F12) You should have the following tabs: Elements, Console, Sources, Network, ... EditThisCookies. On EditThisCookie tab you have Name=_pinterest_sess; Copy value Paste your token into a file called cookies.txt in the same directory where the pinterest-downloader is. Call the script and add the -co cookies.txt arguments to download your secret galleries. This file contains _pinterest_sess="put_your_token_here"; expires=""; Path="/"; HttpOnly; SameSite=None; Secure; Domain=".pinterest.com";