Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions CHANGES.rst
Original file line number Diff line number Diff line change
@@ -1,6 +1,11 @@
Changes
=======

TBR
---

* Require to install ``Brotli`` as a dependency.

0.3.0 (2022-07-29)
------------------

Expand Down
3 changes: 2 additions & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,10 +27,11 @@ def get_version():
install_requires=[
'requests',
'tenacity',
'aiohttp >= 3.6.0',
'aiohttp >= 3.7.3',
'tqdm',
'attrs',
'runstats',
'brotli',
],
classifiers=[
'Development Status :: 3 - Alpha',
Expand Down
2 changes: 1 addition & 1 deletion zyte_api/aio/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ async def request_raw(self, query: dict, *,
retrying = retrying or zyte_api_retrying
post = _post_func(session)
auth = aiohttp.BasicAuth(self.api_key)
headers = {'User-Agent': user_agent(aiohttp)}
headers = {'User-Agent': user_agent(aiohttp), 'Accept-Encoding': 'br'}

response_stats = []
start_global = time.perf_counter()
Expand Down