Add Curl-Impersonate Downloader via curl_cffi project

The browser to imitate can be set in the config:

For example,
```yaml
curl_impersonate:
    browser: chrome110
```

It will default to using chrome110 if no value is set in the config.

A list of available Browsers are listed here: https://github.com/yifeikong/curl_cffi#sessions
This commit is contained in:
rlaphoenix
2024-01-09 22:38:06 +00:00
parent a9de9748ec
commit c6c2e9ca51
6 changed files with 215 additions and 2 deletions

View File

@@ -61,6 +61,7 @@ subtitle-filter = "^1.4.8"
Unidecode = "^1.3.7"
urllib3 = "^2.1.0"
chardet = "^5.2.0"
curl-cffi = "^0.5.10"
[tool.poetry.dev-dependencies]
pre-commit = "^3.5.0"