Skip to content

Instantly share code, notes, and snippets.

@DeflateAwning
Forked from antiops/pixieset-scrape.js
Last active April 10, 2024 05:03
Show Gist options
  • Star 8 You must be signed in to star a gist
  • Fork 2 You must be signed in to fork a gist
  • Save DeflateAwning/8567037cc7125cb3ede76fed40d27ba1 to your computer and use it in GitHub Desktop.
Save DeflateAwning/8567037cc7125cb3ede76fed40d27ba1 to your computer and use it in GitHub Desktop.
pixieset.com dumper
/* pixieset.com full size image scraper
*
* Rips all images in highest quality
*
* To use, scroll to the very bottom of the album and press F12 then paste the below snippet in and press enter.
* The full file list will be copied to your clipboard. You can use jdownloader to easily download the full list.
*/
(() => {
const data = document.querySelectorAll('img')
let arr = [];
for (let i = 0; i < data.length; i++) {
let url = data[i].src;
if (url.indexOf('images.pixieset.com') !== -1) {
arr.push(url.replace(/-medium|-large|-xlarge/g, '-xxlarge'));
}
}
console.log(arr);
let dataToArray = arr.toString().split(',').map(item => item.trim());
const dummy = document.createElement('textarea');
document.body.appendChild(dummy);
dummy.value = dataToArray.join('\n');
dummy.select();
document.execCommand('copy');
document.body.removeChild(dummy);
})()
@DeflateAwning
Copy link
Author

Perform final download with:

wget -i "url_list_pasted.txt" -P "output_folder/"

@mamoit
Copy link

mamoit commented May 8, 2023

Just dropped by to say thanks 🙂

@speedyrules
Copy link

i am being stupid with the instructions..
how do i do this f12 magic exactly?

@robertbc
Copy link

robertbc commented Jul 25, 2023

i am being stupid with the instructions.. how do i do this f12 magic exactly?

Go here to understand how to do it more. Use Chrome and hit F12 function key, paste the above code in a new snippet and then run it. Details here: https://developer.chrome.com/docs/devtools/javascript/snippets/

Also, I used the WFDownloaderApp to d/l all images once the files landed in the clipboard. https://www.wfdownloader.xyz/

@flsabourin
Copy link

Simple, efficient, thanks!

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