Skip to content

Commit

Permalink
v1.6.6
Browse files Browse the repository at this point in the history
  • Loading branch information
ALERTua committed Aug 5, 2024
1 parent 6840e46 commit 15bdd49
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 10 deletions.
8 changes: 7 additions & 1 deletion HISTORY.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,13 @@ History
=======


1.6.5 (2024-08-01)
1.6.7 (2024-08-05)
------------------

* Thread limiting


* 1.6.5 (2024-08-01)
------------------

* Error 203 retry
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "rozetka-api"
version = "1.6.5"
version = "1.6.6"
description = "Rozetka Python API"
authors = ["Alexey ALERT Rubasheff <alexey.rubasheff@gmail.com>"]
readme = "README.md"
Expand Down
10 changes: 2 additions & 8 deletions rozetka/tools/constants.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,6 @@
assert COUNTRY, "Please fill the correct COUNTRY variable"

DEFAULT_HEADERS = {
# 'Referer': 'https://rozetka.ua/',
# 'User-Agent': USER_AGENT,
# 'Accept': 'text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,*/*;q=0.8',
# 'Accept-Encoding': 'gzip, deflate, br',
# 'Accept-Language': 'uk,en-US;q=0.8,en;q=0.5,ru;q=0.3',
# 'Connection': 'keep-alive',
}

DEFAULT_COOKIES = {
Expand All @@ -26,8 +20,8 @@
IMPERSONATE = os.getenv('IMPERSONATE', 'chrome124')
BULK_ITEMS_REQUEST_MAX_LENGTH = 60

THREADS_MAX = int(os.getenv('THREADS_MAX', 1000))
CALLS_MAX = int(os.getenv('CALLS_MAX', 10))
THREADS_MAX = int(os.getenv('THREADS_MAX', 1500))
CALLS_MAX = int(os.getenv('CALLS_MAX', 100))
CALLS_PERIOD = int(os.getenv('CALLS_PERIOD', 1))

GET_RETRY_DELAY_SEC = int(os.getenv('GET_RETRY_DELAY_SEC', 10))
Expand Down

0 comments on commit 15bdd49

Please sign in to comment.