Skip to content

Instantly share code, notes, and snippets.

@DeflateAwning
Forked from antiops/pixieset-scrape.js
Last active November 10, 2024 19:53
Show Gist options
  • 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);
})()
@flsabourin
Copy link

Simple, efficient, thanks!

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