PixivUtil2
PixivUtil2 copied to clipboard
How to download new illust from bookmark but with the date onwards?
Hi i want to use option 5-Download from bookmarked artists but with the date onwards? example: from October 22, 2022 onwards. like start-date. I'm curently using datediff, but datediff filter is using after checking ''is image in database", so it only works for images that aren't already in database, so i think it's not useful, it would be nice if datediff filtered even the images already in the database. Is it available or not? if not can you do it, i would appreciate it. thanks you
hmm, the API doesn't provide any date filtering and the return message doesn't contains any date information.
So the filtering can only be done from the application, for example to stop downloading when the start date is reached (looks like it is ordered in descending order/latest works )

Thank you for your reply, my idea is to interchange step 1 and 2, then i think datediff will work very well in this case
If you want to use datediff, it is already there. https://github.com/Nandaka/PixivUtil2/blob/master/PixivImageHandler.py#L121-L127 https://github.com/Nandaka/PixivUtil2/blob/master/PixivArtistHandler.py#L206-L210 https://github.com/Nandaka/PixivUtil2/blob/master/PixivBookmarkHandler.py#L37-L47
I won't change the db check order, because if image is already in DB, most likely it was downloaded before.
It also works from option 2 and option 8

i used datediff but it doesn't seem to work in my case, option 2-8 can only be done manually (follow ~10000 artist). so I'd appreciate it if you could do it
It should apply for option 5 also, can you try to set the datediff to 1 and see the result? It should continue to the next member id from your bookmark
On Tue, Nov 15, 2022, 23:36 hehequya @.***> wrote:
i used datediff but it doesn't seem to work in my case, option 2-8 can only be done manually (follow ~10000 artist). so I'd appreciate it if you could do it
— Reply to this email directly, view it on GitHub https://github.com/Nandaka/PixivUtil2/issues/1190#issuecomment-1315486871, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAGMKAYBEBUEK3GNDLUMYRTWIOUXTANCNFSM6AAAAAAR7BG6CE . You are receiving this because you commented.Message ID: @.***>
Temporarily I still use datediff = 1 before i write this issue. The problem here is when meeting a member (already downloaded all images) datediff will still run until the last page(*100000 followed member), it takes quite a long time
@Nandaka hi, as i see, you check is image in db or not. if it in db -> skip, else -> check datediff, so cant you swap the code , check datediff first and break the loop, if will be skip all image older(don't care if it in the database or not) that will be shortens a lot of time