1
0
Fork 0
Some scripts to download some stuff you might want to download
Go to file
Conduitry 393edeba2c retry on 429 responses 2023-09-28 22:18:50 -04:00
.eslintrc.cjs add ESLint config 2022-06-03 22:34:54 -04:00
.gitignore add missing package-lock.json exception to .gitignore 2023-09-06 11:15:54 -04:00
LICENSE initial commit 2022-06-03 22:33:21 -04:00
README.md add USE_WGET workaround 2023-09-04 06:52:26 -04:00
_booru.js support md5 and id queries in boorus 2023-02-08 23:53:27 -05:00
_shared.js retry on 429 responses 2023-09-28 22:18:50 -04:00
aug-e621.js rework directory/query handling in aug-* 2022-06-16 20:14:02 -04:00
dl-e621.js avoid 3/10,000,000 event 2022-12-11 07:08:47 -05:00
dl-furrybooru.js factor out shared booru code 2022-06-19 22:39:10 -04:00
dl-rule34.js add dl-rule34 2022-06-19 22:39:34 -04:00
dl-tbib.js add dl-tbib 2023-02-09 08:57:31 -05:00
package-lock.json update to package-lock.json version 3 2023-09-05 15:39:47 -04:00
package.json add ESLint config 2022-06-03 22:34:54 -04:00

README.md

dl-fur

[hostname].json fetch options

Each request will look for a corresponding [hostname].json and, if present, will use it as the second argument in all fetch calls.

For example, if you have a cf_clearance cookie for the Cloudflare protection in front of FurryBooru, you can create

// furry.booru.org.json
{
	"headers": {
		"cookie": "cf_clearance=whatever",
		"user-agent": "whatever"
	}
}

and this cookie and user-agent will be used for API calls and for downloading the images.

USE_WGET environment variable

If the USE_WGET environment variable is set to a non-empty string, a call to the wget binary will be used to download the files, rather than th global fetch from Undici. (Calls to the API will continue to use fetch.) Use this if, for example, the fetch calls to download the files are failing with UND_ERR_CONNECT_TIMEOUT.

License

MIT