Skip to content

Commit

Permalink
Update docs
Browse files Browse the repository at this point in the history
  • Loading branch information
lexiforest committed Oct 6, 2024
1 parent 81a5400 commit c044211
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 5 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

[Documentation](https://curl-cffi.readthedocs.io)

Python binding for [curl-impersonate](https://github.com/lwthiker/curl-impersonate)
Python binding for [curl-impersonate fork](https://github.com/lexiforest/curl-impersonate)
via [cffi](https://cffi.readthedocs.io/en/latest/).

Unlike other pure python http clients like `httpx` or `requests`, `curl_cffi` can
Expand Down
10 changes: 7 additions & 3 deletions curl_cffi/requests/session.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,10 @@
Literal,
Optional,
Tuple,
Type,
TypedDict,
Union,
cast,
Type,
)
from urllib.parse import ParseResult, parse_qsl, quote, unquote, urlencode, urljoin, urlparse

Expand Down Expand Up @@ -255,8 +255,10 @@ def __init__(
if response_class is None:
response_class = Response
elif not issubclass(response_class, Response):
raise TypeError( "`response_class` must be a subclass of `curl_cffi.requests.models.Response`"
f" not of type `{response_class}`" )
raise TypeError(
"`response_class` must be a subclass of `curl_cffi.requests.models.Response`"
f" not of type `{response_class}`"
)
self.response_class = response_class

if proxy and proxies:
Expand Down Expand Up @@ -804,6 +806,7 @@ def __init__(
default_encoding: encoding for decoding response content if charset is not found in
headers. Defaults to "utf-8". Can be set to a callable for automatic detection.
cert: a tuple of (cert, key) filenames for client cert.
response_class: A customized subtype of ``Response`` to use.
Notes:
This class can be used as a context manager.
Expand Down Expand Up @@ -1100,6 +1103,7 @@ def __init__(
default_encoding: encoding for decoding response content if charset is not found
in headers. Defaults to "utf-8". Can be set to a callable for automatic detection.
cert: a tuple of (cert, key) filenames for client cert.
response_class: A customized subtype of ``Response`` to use.
Notes:
This class can be used as a context manager, and it's recommended to use via
Expand Down
2 changes: 1 addition & 1 deletion docs/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ Welcome to curl_cffi's documentation!

.. _Discuss on Telegram: https://t.me/+lL9n33eZp480MGM1

curl_cffi is a Python binding for `curl-impersonate`_ via `cffi`_.
curl_cffi is a Python binding for `curl-impersonate fork`_ via `cffi`_.

.. _curl-impersonate: https://github.com/lexiforest/curl-impersonate
.. _cffi: https://cffi.readthedocs.io/en/latest/
Expand Down

0 comments on commit c044211

Please sign in to comment.