I've looked around this project for directions to get the "a" and "b" cookies necessary to download mature stuff from FA. I don't see any options for it in the example config files. I also tried looking for them on FA itself. I know it's probably obvious, but could someone please point out to me how to set up these cookies?
Do you have a gallery-dl.config or config.json configurations file located in the proper place as indicated in the "Configuration" section on the main page?
If you do (and you have an active FA account you're logged into at the moment), this is what you do.
Bring up inspect element on an FA page (again, while you are logged in), and go to the Storage section. There should be a section called cookies where you can find all the cookies that FA uses. Copy both the a and b cookies into your config file so it resembles this:
"furaffinity":
{
"include": "gallery,scraps",
"filename": "{filename}.{extension}",
"cookies": {
"a": "whatever is listed in "a" cookie",
"b": "whatever is listed in "b" cookie"
}
},
If you don't know how to edit the config file (and are using Windows), there's a very useful third party program called Notepad++ that can open config/json files for alteration.
In my current example, I have it so it only downloads the main gallery and the scraps gallery, but you can also add favorites of the user (or just use "all", as described in the configuration.rst listed in the docs bin here in the github).
The filename setting as seen in the example tells the program to name images it downloads to be the same as if you download them from the site directly.
Thanks a bunch for the helpful guide!
Most helpful comment
Do you have a
gallery-dl.configorconfig.jsonconfigurations file located in the proper place as indicated in the "Configuration" section on the main page?If you do (and you have an active FA account you're logged into at the moment), this is what you do.
Bring up inspect element on an FA page (again, while you are logged in), and go to the Storage section. There should be a section called cookies where you can find all the cookies that FA uses. Copy both the
aandbcookies into your config file so it resembles this:If you don't know how to edit the config file (and are using Windows), there's a very useful third party program called Notepad++ that can open config/json files for alteration.
In my current example, I have it so it only downloads the main gallery and the scraps gallery, but you can also add favorites of the user (or just use "all", as described in the configuration.rst listed in the docs bin here in the github).
The
filenamesetting as seen in the example tells the program to name images it downloads to be the same as if you download them from the site directly.