mikf / gallery-dl

Command-line program to download image galleries and collections from several image hosting sites
GNU General Public License v2.0
11.96k stars 976 forks source link

Pixiv: "refresh token required" error after using OAuth:Pixiv and getting refresh token/code... #4787

Open spectrefps opened 1 year ago

spectrefps commented 1 year ago

I keep receiving a "refresh token requred" error while trying to download images from Pixiv. This is after I have gone through the oauth:pixiv process and provided my username/password in the command. Per the message after submitting the url/code after the oauth process, the code should be cached and automatically used. So why do I receive this error when I try to download images immediately after running the oauth process?

UPDATE: I added the refresh token into the config.json file (replacing "null"), and tried it again. Now I get the "403 Forbidden" error. What else do I need to do in order to get it to work on Pixiv?

UPDATE 2: Adding the referrer url portion before the image page url fixed the issue. Is there a way to enable this by default for Pixiv? I recall one of the recent updates added this functionality for DeviantArt urls (before DeviantArt blocked everything...)

climbTheStairs commented 1 year ago

Hi, I think I might be having a similar issue. Do you mind elaborating what you mean in UPDATE 2?