gemini-webapi 1.9.0__py3-none-any.whl → 1.9.1__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- gemini_webapi/client.py +11 -12
- {gemini_webapi-1.9.0.dist-info → gemini_webapi-1.9.1.dist-info}/METADATA +3 -2
- {gemini_webapi-1.9.0.dist-info → gemini_webapi-1.9.1.dist-info}/RECORD +6 -6
- {gemini_webapi-1.9.0.dist-info → gemini_webapi-1.9.1.dist-info}/WHEEL +1 -1
- {gemini_webapi-1.9.0.dist-info → gemini_webapi-1.9.1.dist-info/licenses}/LICENSE +0 -0
- {gemini_webapi-1.9.0.dist-info → gemini_webapi-1.9.1.dist-info}/top_level.txt +0 -0
gemini_webapi/client.py
CHANGED
|
@@ -361,18 +361,17 @@ class GeminiClient:
|
|
|
361
361
|
try:
|
|
362
362
|
response_json = json.loads(response.text.split("\n")[2])
|
|
363
363
|
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
if not body[4]:
|
|
364
|
+
body = None
|
|
365
|
+
for part in response_json:
|
|
366
|
+
try:
|
|
367
|
+
main_part = json.loads(part[2])
|
|
368
|
+
if main_part[4]:
|
|
369
|
+
body = main_part
|
|
370
|
+
break
|
|
371
|
+
except (IndexError, TypeError, ValueError):
|
|
372
|
+
continue
|
|
373
|
+
|
|
374
|
+
if not body:
|
|
376
375
|
raise Exception
|
|
377
376
|
except Exception:
|
|
378
377
|
await self.close()
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
Metadata-Version: 2.
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
2
|
Name: gemini-webapi
|
|
3
|
-
Version: 1.9.
|
|
3
|
+
Version: 1.9.1
|
|
4
4
|
Summary: ✨ An elegant async Python wrapper for Google Gemini web app
|
|
5
5
|
Author: UZQueen
|
|
6
6
|
License: GNU AFFERO GENERAL PUBLIC LICENSE
|
|
@@ -679,6 +679,7 @@ License-File: LICENSE
|
|
|
679
679
|
Requires-Dist: httpx[http2]~=0.28.1
|
|
680
680
|
Requires-Dist: pydantic~=2.10.5
|
|
681
681
|
Requires-Dist: loguru~=0.7.3
|
|
682
|
+
Dynamic: license-file
|
|
682
683
|
|
|
683
684
|
<p align="center">
|
|
684
685
|
<img src="https://raw.githubusercontent.com/HanaokaYuzu/Gemini-API/master/assets/banner.png" width="55%" alt="Gemini Banner" align="center">
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
gemini_webapi/__init__.py,sha256=28uNIywK4vCXxENaSagNWUzhqr1RyNtLzDF6WRRM4KQ,194
|
|
2
|
-
gemini_webapi/client.py,sha256=
|
|
2
|
+
gemini_webapi/client.py,sha256=4ptFBYy-ipcxox1x7WDOK04YMYU_cu6NwS8CSrmz3kM,23105
|
|
3
3
|
gemini_webapi/constants.py,sha256=_8TdJH3dvzSDo0qfhKCAerWXBbH71u0B0mSGOkkJQ5w,2737
|
|
4
4
|
gemini_webapi/exceptions.py,sha256=6e-EXHGApi4iC0GDw7RKc3YqVK8UvEkHYaJyGQbReLw,548
|
|
5
5
|
gemini_webapi/types/__init__.py,sha256=d2kvXnE004s2E2KDmPPLi5N-BQ59FgDSlrGrO3Wphww,163
|
|
@@ -12,8 +12,8 @@ gemini_webapi/utils/load_browser_cookies.py,sha256=A5n_VsB7Rm8ck5lpy856UNJEhv30l
|
|
|
12
12
|
gemini_webapi/utils/logger.py,sha256=PF4ROQq7scRRrWzeYdeYiYs2S2Jqr0bgjyrPbXVOCqE,816
|
|
13
13
|
gemini_webapi/utils/rotate_1psidts.py,sha256=NyQ9OYPLBOcvpc8bodvEYDIVFrsYN0kdfc831lPEctM,1680
|
|
14
14
|
gemini_webapi/utils/upload_file.py,sha256=A-ZQ54gy2wOVA_giEEVLQQK5zTJfrgq99Z5YYYOAFYc,1163
|
|
15
|
-
gemini_webapi-1.9.
|
|
16
|
-
gemini_webapi-1.9.
|
|
17
|
-
gemini_webapi-1.9.
|
|
18
|
-
gemini_webapi-1.9.
|
|
19
|
-
gemini_webapi-1.9.
|
|
15
|
+
gemini_webapi-1.9.1.dist-info/licenses/LICENSE,sha256=hIahDEOTzuHCU5J2nd07LWwkLW7Hko4UFO__ffsvB-8,34523
|
|
16
|
+
gemini_webapi-1.9.1.dist-info/METADATA,sha256=LXrhPGqkC1MfBvX868TaWV-xKuVpQmsDbi90KSrKHzg,57797
|
|
17
|
+
gemini_webapi-1.9.1.dist-info/WHEEL,sha256=tTnHoFhvKQHCh4jz3yCn0WPTYIy7wXx3CJtJ7SJGV7c,91
|
|
18
|
+
gemini_webapi-1.9.1.dist-info/top_level.txt,sha256=dtWtug_ZrmnUqCYuu8NmGzTgWglHeNzhHU_hXmqZGWE,14
|
|
19
|
+
gemini_webapi-1.9.1.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|