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

Pinterest: can't download "All Pins" board #2855

Closed
780pch0 opened this issue Aug 22, 2022 · 8 comments
Closed

Pinterest: can't download "All Pins" board #2855

780pch0 opened this issue Aug 22, 2022 · 8 comments

Comments

@780pch0
Copy link

780pch0 commented Aug 22, 2022

Hello,

A little context, I don't know if it's needed but:
I'm trying to download all pins because there's a new feature of Pinterest named Unorganized ideas, those are pins saved to "Profile" and stored below the boards on "https://pinterest.com/username/". There's no way you can download images like that with gallery-dl if only you don't move them into the boards.
I tried using the command gallery-dl "https://pinterest.com/username/_saved/" , which didn't worked (it downloaded every board except All Pins board and Unorganized ideas images below the boards).
,,,,

So for my problem, I'm trying to download open board that contains all pins and named "All Pins" "https://pinterest.com/username/pins/" but when running the command:

gallery-dl "https://pinterest.com/username/pins/"

I get this:

[pinterest][error] NotFoundError: Requested board could not be found

But is there a way to somehow download this specific "All Pins" board? Sorry for those kind of probably stupid questions, i'm not familiar with coding etc., just want to download pictures.


I also tried the following command:

gallery-dl -r/-raw "https://pinterest.com/username/pins/"

It works just fine and I'm able to download pictures (I don't mind clearing unwanted images, as long as I get the ones I need and in okayish resolution), but the problem is it doesn't download ALL images from this board past scrolling.
Is there any way to get this command download pictures past the scrolling? (I probably use this command in a not intended way, am I? sshgfsgsf)


All Pins board works like a Secret board (it requires to be logged in as pinterest user). But the following command:

gallery-dl --cookies C:\Path\To\Cookies_Pinterest.txt https://pinterest.com/username/secretboard

works only on the Secret Boards made by user.

So when I input this command but for the All Pins board I get the same error as it was:

gallery-dl --cookies C:\Path\To\Cookies_Pinterest.txt https://pinterest.com/username/pins/

[pinterest][error] NotFoundError: Requested board could not be found


Also I don't know what I did but I can't run -raw anymore, oofie. Back then as an output it generated '...\gallery-dl\directlink' folder where the page media was stored, but now it doesn't work.
__
I found a way around /pins/ with the help of the other program, so I don't require any help anymore.
But I guess I shall leave this discussion not deleted, cause the All Pins board error is still present in gallery-dl

@Hrxn
Copy link
Contributor

Hrxn commented Aug 23, 2022

So, basically, the "Unorganized Ideas" board is a new site feature?
Don't expect that to work if it has not been implemented yet..

gallery-dl "https://pinterest.com/username/pins/"

I get this:

[pinterest][error] NotFoundError: Requested board could not be found

Please post the full output of gallery-dl with the -v option...

All Pins board works like a Secret board (it requires to be logged in as pinterest user). But the following command:
gallery-dl --cookies C:\Path\To\Cookies_Pinterest.txt https://pinterest.com/username/secretboard
works only on the Secret Boards made by user.

Yes, so this works as expected, or what am I missing here?

I tried using the command gallery-dl "https://pinterest.com/username/_saved/"

This should download the specific "saved" board from this specific user..

I also tried the following command:

gallery-dl -r/-raw "https://pinterest.com/username/pins/"

It works just fine and I'm able to download pictures (I don't mind clearing unwanted images, as long as I get the ones I need and in okayish resolution), but the problem is it doesn't download ALL images from this board past scrolling.

I'm sorry, but where did you take this from? What's that -raw option?

@780pch0
Copy link
Author

780pch0 commented Aug 24, 2022

So, basically, the "Unorganized Ideas" board is a new site feature?
Don't expect that to work if it has not been implemented yet..

True, didn't expected it to work but tried to see if it would (cause it is indeed a board), but it is what it is.

Please post the full output of gallery-dl with the -v option...

gallery-dl -v https://www.pinterest.com/USERNAME/pins/
[gallery-dl][debug] Version 1.22.4
[gallery-dl][debug] Python 3.8.7
[gallery-dl][debug] requests 2.28.1 - urllib3 1.26.11
[gallery-dl][debug] Starting DownloadJob for 'https://www.pinterest.com/USERNAME/ pins/'
[pinterest][debug] Using PinterestBoardExtractor for 'https://www.pinterest.com/USERNAME/pins/'
[urllib3.connectionpool][debug] Starting new HTTPS connection (1): www.pinterest .com:443
[urllib3.connectionpool][debug] https://www.pinterest.com:443 "GET /resource/Boa rdResource/get/?data=%7B%22options%22%3A+%7B%22slug%22%3A+%22pins%22%2C+%22usern ame%22%3A+%22USERNAME%22%2C+%22field_set_key%22%3A+%22detailed%22%7D%7D&source_u rl= HTTP/1.1" 404 None
[pinterest][error] NotFoundError: Requested board could not be found

Yes, so this works as expected, or what am I missing here?

That was an attempt to use the command (that works fine on secret boards and lets you download them) on the All Pins board. Because All Pins board acts kind of like Secret Board, by the usage of the command on All Pins board it gives the same error that Secret Board outputs (when you don't feed Secret Board cookies, that is), but with cookies or without the All Pins just outputs this error)

This should download the specific "saved" board from this specific user..

It actually downloads all boards, because 'saved' is a category in a user profile (either 'created' category which contains all created pins or 'saved' which contains created boards (and 'Unorganized ideas' row below the boards now)).

And it is indeed works as expected. But I brought this to the discussion because I was trying this command to see if it will download 'All Pins' board/unorganized ideas too, which it didn't.

I'm sorry, but where did you take this from? What's that -raw option?

Honestly I don't know either, I was googling non stop about gallery-dl deep into the night and I got something out of google asks site (??perhaps) and typed it in cmd. I can't even find this website page in history, it kind of feels like fever dream now, sorry, don't mind that part of discussion.


Sorry for lots of titles of boards in here, to clarify about Pinterest:

There's a row below the boards on the webpage https://pinterest.com/username/_saved/ that is called Unorganized ideas. It is a row where pins that you 'save to Profile' go, they don't have a board assigned to them.
But this thing doesn't matter, what matter is those boardless pins show up in All Pins board (which is pretty vague, where all pins from all your boards also show up).

So if there will be some way in a future to just download this All Pins board with gallery-dl only, it'll be neat.
I personally got around it by using other extension to grab URLs of the images from All Pins board and then downloaded them using gallery-dl -i urls.txt and everything turned out good in the end.

@hellen-dorandt89
Copy link

hellen-dorandt89 commented Dec 31, 2022

I found a way around /pins/ with the help of the other program, so I don't require any help anymore.
by using other extension to grab URLs of the images from All Pins board and then downloaded them using gallery-dl -i urls.txt and everything turned out good in the end.

Hey I am having the same issues, can you please share with me what other tool you used to retrieve the links for all the saved pins in a txt file?

I tried the exact same steps as you, nothing has worked.

@780pch0
Copy link
Author

780pch0 commented Jan 3, 2023

I found a way around /pins/ with the help of the other program, so I don't require any help anymore.
by using other extension to grab URLs of the images from All Pins board and then downloaded them using gallery-dl -i urls.txt and everything turned out good in the end.

Hey I am having the same issues, can you please share with me what other tool you used to retrieve the links for all the saved pins in a txt file?

I tried the exact same steps as you, nothing has worked.

Good afternoon,

Esentially in steps i got it working like this:

  1. Get a txt with all the links of the pins
  2. Set this txt into gallery-dl
  3. Done

I must say that i only got a hold of the pins in the "All pins" board with step 1, i never tried it with "Unorganized ideas" or at least i can't remember that i did.

To get the links i used KellyC Image Downloader, it's a browser extension.
You dowbload and enable that, then open the tab with the "All pins" board. After that it's pretty straightforward, KellyC will grab the links or the images itselves that are already are on the page. So you need (if you need to get all the pins) to scroll all the way to the bottom of the board so all the images are counted by KellyC. Then you click on the extension icon and it will open up a new tab with all the images. There you can set up a settings, for example if you want to download all the images just the way they are as jpg batch from browser (it's the usual download button) or get a hold of the links that are pin source. The links will go in one file.

And the rest is just download from txt with links using gallery-dl.

Hopefully i explained it okayish, i think you'll figure it out yourself.

Have a good day.

@780pch0 780pch0 closed this as not planned Won't fix, can't repro, duplicate, stale Jan 3, 2023
@780pch0 780pch0 reopened this Jan 3, 2023
@780pch0
Copy link
Author

780pch0 commented Jan 3, 2023

Hit the button by accident

@mikf
Copy link
Owner

mikf commented Jan 3, 2023

Support for "All Pins" boards got added in commit 294108c.

(it requires to be logged in as pinterest user)

Not with gallery-dl and 294108c. Pinterest shows these boards only when logged in, but it is possible to access them via API even when not.

$ gallery-dl https://www.pinterest.de/digitalmomblog/pins/
/tmp/pinterest/digitalmomblog/pinterest_161496336630320297.jpg
/tmp/pinterest/digitalmomblog/pinterest_295267319336323260.jpg
/tmp/pinterest/digitalmomblog/pinterest_161496336630312866.jpg
...

@mikf mikf closed this as completed Jan 3, 2023
@hellen-dorandt89
Copy link

Hit the button by accident

Wonderfull, Thank you so much taking the time to write this down. Am having greate day now, how the same for you

@hellen-dorandt89
Copy link

Support for "All Pins" boards got added in commit 294108c.

(it requires to be logged in as pinterest user)

Not with gallery-dl and 294108c. Pinterest only shows these boards when logged in, but it is possible to access them via API even when not.

$ gallery-dl https://www.pinterest.de/digitalmomblog/pins/
/tmp/pinterest/digitalmomblog/pinterest_161496336630320297.jpg
/tmp/pinterest/digitalmomblog/pinterest_295267319336323260.jpg
/tmp/pinterest/digitalmomblog/pinterest_161496336630312866.jpg
...

Amazing news. I was not expecting this to be so quick, thanks allot!

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

No branches or pull requests

4 participants