Mrrrr's Forum (VIEW ONLY)
Un forum care ofera solutii pentru unele probleme legate in general de PC. Pe langa solutii, aici puteti gasi si alte lucruri interesante // A forum that offers solutions to some PC related issues. Besides these, here you can find more interesting stuff.
|
Lista Forumurilor Pe Tematici
|
Mrrrr's Forum (VIEW ONLY) | Reguli | Inregistrare | Login
POZE MRRRR'S FORUM (VIEW ONLY)
Nu sunteti logat.
|
Nou pe simpatie: AlessyaDaniela
 | Femeie 25 ani Bucuresti cauta Barbat 25 - 50 ani |
|
Mrrrr
AdMiN
 Inregistrat: acum 18 ani
Postari: 2257
|
|
You can use the following command-line program to download image galleries and collections, as well as videos from some sites (reels etc.):
You can download the latest gallery-dl.exe file from here: E.g.,
There is a comprehensive guide on the main page with examples on how to use:
For example, for downloading an instagram reel with funny animals: I first logged into my instagram account in Chrome.
After that, there are 2 options to create a cookies.txt file that you require to download the reel:
1. Use the Chrome extension to save the instagram cookies to a txt file.
2. If you don't trust a Chrome extension, you can do it manually: - open the desired webpage (e.g., reel page on instagram) - right click in the page and click Inspect (or press F12 while on the page) to open the Dev Tools - go to the Application tab - on the left side, under Storage, click the arrow next to Cookies and then select the website (e.g., instagram) - on the right side of the Application window you will now have a table with several columns (Name, Value, Domain, Path, Expires/Max-Age, Size, HttpOnly, Secure, SameSite, Partition Key Site, Cross Site, Priority) - in the folder where you put gallery-dl.exe, create a new text file and name it for example cookies.txt and open it - you now have to add data corresponding to the following columns inside cookies.txt manually (each will be separated by a tab space in Notepad) - but you don't have to add their names as headers like the ones underlined below, just know their order in the cookies.txt file: Domain - taken from the Domain column in Dev Tools Include subdomains - TRUE if the Domain (above) starts with a dot (.instagram.com) and FALSE if the Domain doesn't start with a dot (instagram.com) Path - taken from the Path column in Dev Tools Secure - taken from the Secure column in Dev Tools Expiry - this is calculated based on the date and time from the Expires/Max-Age column in Dev Tools (see calculation options below) Name - taken from the Name column in Dev Tools Value - taken from the Value column in Dev Tools
A cookie.txt file for instagram could look like this (it is called a Netscape cookie format:
Code:
.instagram.com TRUE / TRUE 1781430923 name_1 value_1
.instagram.com TRUE / TRUE 1777414347 name_2 value_2
.instagram.com TRUE / TRUE 1754642286 name_3 value_3
.instagram.com TRUE / TRUE 1774390347 name_4 value_4
.instagram.com TRUE / TRUE 1777414347 name_5 value_5
.instagram.com TRUE / TRUE 0 name_6 value_6
.instagram.com TRUE / TRUE 1778401462 name_7 value_7
.instagram.com TRUE / TRUE 1747471082 name_8 value_8 |
Expiry calculation - the values in the Expires/Max-Age column will look like this: 2026-06-14T12:55:23.135Z - in the example above, the number (unix format) corresponding to that value is: 1781430923 - there are multiple ways to calculate the unix format number - javascript, python, online converter, excel - I will list below only the last two: a) Using online converter: Simply complete the fields under "Enter a Date & Time" with the data from the Expires/Max-Age column. e.g., Year = 2026 Month = 6 Day = 14 Hour = 12 Minutes = 55 Seconds = 23 b) Using an excel formula (faster) - put the Expires/Max-Age values in column A starting from A1 and in B1 the following formula and drag it down: =INT((--SUBSTITUTE(SUBSTITUTE(A1;"T";" "); "Z"; "") - DATE(1970;1;1)) * 86400)
I saved the cookies.txt file into the same folder where I put gallery-dl.exe, namely F:\TEMP
Then the command I ran into cmd inside the folder I saved gallery-dl.exe and cookies.txt was:
gallery-dl --cookies "F:\TEMP\cookies.txt" |
_______________________________________

|
|
pus acum 8 zile |
|