Hi guys !
I'm using a template for pixiv wich works very well but I would like to download each artworks from a user in separate sub-folders.
e.g. https://www.pixiv.net/en/artworks/12345678 => sub-folder name: 12345678
Unfortunately I can't find the regular expression to make it work correctly. Has anyone ever managed to get this function to work with pixiv ?
I tried with artworks/([^&]+) but I'm kind of lost with all that stuff tbh...
pixiv - sub-folder
-
- Site Admin
- Posts: 2077
- Joined: 02 Mar 2009, 17:02
Re: pixiv - sub-folder
It would have worked if Extreme Picture Finder was visiting the
/artworks/
URLs during the download. But if you take a look at the [ Download log ] using menu item [ Project -> View download log... ] you'll see that Extreme Picture Finder uses website API to get directly to images, skipping the /artworks/ pages to speed-up the download process.
But still there a way to do it. Artwork IDs are used in the image file names:
/img-original/img/year/mon/day/hour/min/sec/ARTWORKID_p0.png
So you can [ Use Target File URL Regular Expression to create sub-folder ] with the following Regular Expression:
Expression: .*/(\d+)_p\d+\.
Result: [#1]
/artworks/
URLs during the download. But if you take a look at the [ Download log ] using menu item [ Project -> View download log... ] you'll see that Extreme Picture Finder uses website API to get directly to images, skipping the /artworks/ pages to speed-up the download process.
But still there a way to do it. Artwork IDs are used in the image file names:
/img-original/img/year/mon/day/hour/min/sec/ARTWORKID_p0.png
So you can [ Use Target File URL Regular Expression to create sub-folder ] with the following Regular Expression:
Expression: .*/(\d+)_p\d+\.
Result: [#1]
-
- Posts: 2
- Joined: 13 Nov 2021, 04:47
Re: pixiv - sub-folder
That's exactly what I wanted and it works like a charm !
I feel kinda silly, I was focused on the url and didn't think about the filename...
Thanks for your help Maxim, you're the best ! :)
I feel kinda silly, I was focused on the url and didn't think about the filename...
Thanks for your help Maxim, you're the best ! :)