Skip to content

Commit dda4ef7

Browse files
committed
Fix typos
1 parent 961af8b commit dda4ef7

File tree

7 files changed

+11
-6
lines changed

7 files changed

+11
-6
lines changed

.github/workflows/unittest.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ jobs:
1111
runs-on: ubuntu-latest
1212
strategy:
1313
matrix:
14-
python-version: ["3.8", "3.9", "3.10", "3.11", "3.12", "3.13"]
14+
python-version: ["3.9", "3.10", "3.11", "3.12", "3.13"]
1515
steps:
1616
- uses: actions/checkout@v3
1717
- name: Set up Python ${{ matrix.python-version }}

.pylintrc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
[MASTER]
2-
disable = W0718, C0301, R0902, R1710, R0903
2+
disable = W0718, C0301, R0902, R1710, R0903, R0801, E0401

README.rst

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,11 @@
1515

1616
A modern, easy-to-use Python wrapper for the Akinator web game, supporting both synchronous and asynchronous usage.
1717

18+
Background
19+
----------
20+
21+
Originally, there was a popular Python library called `akinator.py`, which provided a simple interface to interact with the Akinator API. However, this library suddenly disappeared from public repositories without notice. In response, a mirror was created here to preserve its functionality. Unfortunately, it too stopped working after Akinator made changes to their backend API. Later, another library called `akipy` emerged to fill the gap, but it also became non-functional when Cloudflare protection was introduced on Akinator's endpoints. This library revives Akinator interaction by replacing the standard `requests` library with `cloudscraper`, allowing it to bypass Cloudflare’s anti-bot measures and restoring full functionality.
22+
1823
Features
1924
--------
2025

akinator/async_client.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ class AsyncClient:
130130
:ivar confidence: The confidence level of the current question, represented as a float between 0 and 1.
131131
:ivar theme_id: The ID of the current theme, represented as an integer.
132132
:ivar theme_name: The name of the current theme, represented as a string.
133-
:ivar akitide_url: The URL of the current akitude image associated with the game session.
133+
:ivar akitude_url: The URL of the current akitude image associated with the game session.
134134
"""
135135

136136
def __init__(self, session: Optional[CloudScraper] = None):

akinator/client.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ class Client:
115115
:ivar confidence: The confidence level of the current question, represented as a float between 0 and 1.
116116
:ivar theme_id: The ID of the current theme, represented as an integer.
117117
:ivar theme_name: The name of the current theme, represented as a string.
118-
:ivar akitide_url: The URL of the current akitude image associated with the game session.
118+
:ivar akitude_url: The URL of the current akitude image associated with the game session.
119119
"""
120120

121121
def __init__(self, session: Optional[CloudScraper] = None):

tests/test_async_client.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ async def test_properties_and_str(self):
9393
self.assertEqual(self.client.theme_name, "Characters")
9494
self.client.language = "en"
9595
self.client.akitude = "defi.png"
96-
self.assertIn("defi.png", self.client.akitide_url)
96+
self.assertIn("defi.png", self.client.akitude_url)
9797
self.client.win = True
9898
self.client.finished = False
9999
self.client.proposition = "prop"

tests/test_client.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ def test_properties_and_str(self):
9898
self.assertEqual(self.client.theme_name, "Characters")
9999
self.client.language = "en"
100100
self.client.akitude = "defi.png"
101-
self.assertIn("defi.png", self.client.akitide_url)
101+
self.assertIn("defi.png", self.client.akitude_url)
102102
self.client.win = True
103103
self.client.finished = False
104104
self.client.proposition = "prop"

0 commit comments

Comments
 (0)