I was using you api to add examples sentences (client.get_translation_samples) from reverso to anki cards.
Everything worked fine (thanks for useful tool by the way), but lately following error has started to appear.
File "/venv/lib/python3.11/site-packages/reverso_context_api/client.py", line 57, in get_translation_samples
for page in self._translations_pager(text, target_text, source_lang, target_lang):
File "/venv/lib/python3.11/site-packages/reverso_context_api/client.py", line 105, in _translations_pager
r = self._request_translations(text, source_lang, target_lang, target_text, page_num=page_num)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "venv/lib/python3.11/site-packages/reverso_context_api/client.py", line 143, in _request_translations
r = self._session.json_request("POST", BASE_URL + "bst-query-service", data, headers=headers)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/venv/lib/python3.11/site-packages/reverso_context_api/session.py", line 36, in json_request
r = self.request(method, url, json=data, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/venv/lib/python3.11/site-packages/reverso_context_api/session.py", line 32, in request
r.raise_for_status()
File "/venv/lib/python3.11/site-packages/requests/models.py", line 1024, in raise_for_status
raise HTTPError(http_error_msg, response=self)
requests.exceptions.HTTPError: 403 Client Error: Forbidden for url: https://context.reverso.net/bst-query-service
I'm not so good in python. Can you give me advice how to solve this issue?
Hello,
I was using you api to add examples sentences (client.get_translation_samples) from reverso to anki cards.
Everything worked fine (thanks for useful tool by the way), but lately following error has started to appear.
I'm not so good in python. Can you give me advice how to solve this issue?