It looks like you're trying to use gallery-dl to download media from an Instagram profile, but you're encountering an error because of an unrecognized argument: --archive. Let's break down the command and correct the issue.
Here's your original command:
gallery-dl -D "E:\ang sm\ang insta\pics" --sleep 2 --archive "E:\ang sm\ang insta\pics_archive.db" --filter "extension in ('jpg', 'png')" https://www.instagram.com/aa/
Issue:
The error message gallery-dl: error: unrecognized arguments: --archive https://www.instagram.com/aa/ indicates that gallery-dl does not recognise the --archive argument. This suggests that either you are using an outdated version of gallery-dl or the --archive option is incorrect.
Solution:
-
Check gallery-dl Version:
Ensure you are using the latest version of gallery-dl. You can check your current version with:
gallery-dl --version
If it's outdated update gallery-dl using the appropriate method for your operating system. For example, on Windows with pip:
pip install --upgrade gallery-dl
-
Correct Argument for Archiving:
The correct argument for archiving in gallery-dl is --database not --archive. The --database option specifies the path to the SQLite database file used to keep track of already downloaded items.
Corrected Command:
Replace --archive with --database:
gallery-dl -D "E:\ang sm\ang insta\pics" --sleep 2 --database "E:\ang sm\ang insta\pics_archive.db" --filter "extension in ('jpg', 'png')" https://www.instagram.com/aa/
Explanation:
-D "E:\ang sm\ang insta\pics": Sets the download directory to E:\ang sm\ang insta\pics.
--sleep 2: Adds a 2-second delay between requests to avoid rate limiting.
--database "E:\ang sm\ang insta\pics_archive.db": Specifies the path to the SQLite database for tracking downloaded items
--filter "extension in ('jpg', 'png')": Filters downloads to only include files with the .jpg or .png extensions.
https://www.instagram.com/aa/: The URL of the Instagram profile you want to download from.
This should resolve the unrecognized arguments error and allow gallery-dl to execute the command correctly.