Skip to content

Instantly share code, notes, and snippets.

@daffainfo
Created October 5, 2021 16:11
Show Gist options
  • Save daffainfo/deb405bc4efe1b490212ee5bf2148c80 to your computer and use it in GitHub Desktop.
Save daffainfo/deb405bc4efe1b490212ee5bf2148c80 to your computer and use it in GitHub Desktop.
Pixiv image downloader
#!/bin/bash
ID=13612963
for i in `curl https://www.pixiv.net/ajax/user/$ID/profile/all --silent | sed 's/manga.*//' | grep -o -E "[0-9]{8}"`;
do for j in `curl https://www.pixiv.net/ajax/illust/${i}/pages --silent | jq -r '.body[0].urls.original'`;
do wget --header="Referer: https://pixiv.net" ${j};
done;
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment