1
Fork 0
fetch-booru/README.md

24 lines
539 B
Markdown
Raw Normal View History

2022-06-04 02:33:21 +00:00
# dl-fur
2022-12-10 20:10:03 +00:00
## `[hostname].json` fetch options
2022-12-10 20:10:03 +00:00
Each request will look for a corresponding `[hostname].json` and, if present, will use it as the second argument in all `fetch` calls.
2024-03-13 17:26:09 +00:00
For example, if you have a `cf_clearance` cookie for the Cloudflare protection in front of a given site, you can create
```json
2024-03-13 17:26:09 +00:00
// example.com.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.
2022-06-04 02:33:21 +00:00
## License
[MIT](LICENSE)