How do I download an entire folder with aria2?

aria2c does not support recursive download. It does not read the downloaded resource to extract links to other resources.

You can prepare the list of links in a text file and then pass it to aria2c to download.

For more info, see Input File section in aria2 documentation.