Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot download board/section pins #35

Open
ValentinDORMANN opened this issue Jun 17, 2024 · 3 comments
Open

Cannot download board/section pins #35

ValentinDORMANN opened this issue Jun 17, 2024 · 3 comments

Comments

@ValentinDORMANN
Copy link

ValentinDORMANN commented Jun 17, 2024

My pinterest board has the following structure:

  • <user_name>
    • <pin_0.1>
    • <board_1>
      • <pin_1.1>
      • <section_11>
        • <pin_11.1>
      • <section_12>
        • <pin_12.1>
    • <board_2>
      • <pin_2.1>
      • <section_21>
        • <pin_21.1>

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
Copy link

Same problem, a fix for that would be nice.

@OisinHick
Copy link

Where are you getting your cookies file from?

@ValentinDORMANN
Copy link
Author

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";

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants