Nandaka / PixivUtil2

Download images from Pixiv and more!
http://nandaka.devnull.zone/
BSD 2-Clause "Simplified" License
2.34k stars 257 forks source link

Adding multiple user to prevent Error too many request #1272

Open hehequya opened 1 year ago

hehequya commented 1 year ago

is that possiple to login by 1 main user, and adding multiple user(2) to prevent Error too many request

biggestsonicfan commented 1 year ago

I feel that's straight up botting at that point.

You could keep two versions of the program that run on different accounts I guess, it would be easier to do that than restructure configs and internal code that relies on the session.

PatrickL546 commented 1 year ago

I feel that's straight up botting at that point.

You could keep two versions of the program that run on different accounts I guess, it would be easier to do that than restructure configs and internal code that relies on the session.

^This. Also, they might have a request limit per IP, so you might need a proxy set up as well.

hehequya commented 1 year ago

I feel that's straight up botting at that point. You could keep two versions of the program that run on different accounts I guess, it would be easier to do that than restructure configs and internal code that relies on the session.

^This. Also, they might have a request limit per IP, so you might need a proxy set up as well.

but if running like that, they dont have same dbsqlite file, so that make duplicate image download, can i let 2 version(folder) using same dbsqlite file?

biggestsonicfan commented 1 year ago

I have run multiple instances of PixivUtil2 with the same db file, it works fine. The sqlite library is farily robust at locking and unlocking the database properly.

hehequya commented 1 year ago

It won't make a duplicate if it's already downloaded. It can see if the file already exists.

I do have a script that makes it easier to do multiple instances https://github.com/PatrickL546/PixivUtil2-batch-downloader It might help but I don't know how you run PixivUtil2. It is designed with 1 config.ini in mind so you'll have to change those manually if you wanna use multiple accounts.

I have run multiple instances of PixivUtil2 with the same db file, it works fine. The sqlite library is farily robust at locking and unlocking the database properly.

is run multiple instances diffrent than if i run pixiv.exe multiple time?