2022-06-04 02:33:21 +00:00
|
|
|
# dl-fur
|
|
|
|
|
2022-12-10 20:10:03 +00:00
|
|
|
## `[hostname].json` fetch options
|
2022-06-13 12:12:07 +00:00
|
|
|
|
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.
|
2022-06-13 12:12:07 +00:00
|
|
|
|
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
|
2022-06-13 12:12:07 +00:00
|
|
|
|
|
|
|
```json
|
2024-03-13 17:26:09 +00:00
|
|
|
// example.com.json
|
2022-06-13 12:12:07 +00:00
|
|
|
{
|
|
|
|
"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)
|