mikf / gallery-dl

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

[instagram] 401 Unauthorized #3707

Open xzakier opened 1 year ago

xzakier commented 1 year ago

Hi, I just installed gallery-dl on a vps and trying to download a Instagram reel but I get this:

[instagram] [error] HttpError: '401 Unauthorized' for 'https://www.instagram.com/graphql/query/'

I did the install with sudo apt install gallery-dl

also i cant find the config in :

/etc/gallery-dl.conf

$HOME/.config/gallery-dl/config.json

$HOME/.gallery-dl.conf

Thx for the great tool

mikf commented 1 year ago

[instagram] [error] HttpError: '401 Unauthorized' for 'https://www.instagram.com/graphql/query/'

I think you are using a somewhat old version since it is still using /graphql API requests by default. You should update to the latest 1.24.5.

And since it's Instagram, you'll still need to be logged in by providing cookies to be able to download more than a few posts.

also i cant find the config in :

You need to create one yourself, or you copy the default config to one of these locations and modify it.