From b9c693d0fc70601feb3081ee6afec0c8e76d84ee Mon Sep 17 00:00:00 2001 From: Lyonnet Date: Mon, 2 Dec 2024 16:02:39 +0800 Subject: [PATCH] Add Chrome 131 for Android --- Makefile | 2 +- README.md | 1 + curl_cffi/requests/impersonate.py | 6 ++++-- docs/impersonate.rst | 1 + pyproject.toml | 3 ++- scripts/build.py | 2 +- 6 files changed, 10 insertions(+), 5 deletions(-) diff --git a/Makefile b/Makefile index cef0ea4..8ad02bb 100644 --- a/Makefile +++ b/Makefile @@ -2,7 +2,7 @@ SHELL := bash # this is the upstream libcurl-impersonate version -VERSION := 0.8.1 +VERSION := 0.8.2 CURL_VERSION := curl-8_7_1 $(CURL_VERSION): diff --git a/README.md b/README.md index fd15d4d..04417df 100644 --- a/README.md +++ b/README.md @@ -153,6 +153,7 @@ to specify your own customized fingerprints. See the [docs on impersonatation](h - chrome124 [3] - chrome131 [4] - chrome99_android +- chrome131_android [4] - edge99 - edge101 - safari15_3 [2] diff --git a/curl_cffi/requests/impersonate.py b/curl_cffi/requests/impersonate.py index 803a13f..900549c 100644 --- a/curl_cffi/requests/impersonate.py +++ b/curl_cffi/requests/impersonate.py @@ -23,6 +23,7 @@ "chrome124", "chrome131", "chrome99_android", + "chrome131_android", # Safari "safari15_3", "safari15_5", @@ -52,7 +53,7 @@ DEFAULT_EDGE = "edge101" DEFAULT_SAFARI = "safari18_0" DEFAULT_SAFARI_IOS = "safari18_0_ios" -DEFAULT_CHROME_ANDROID = "chrome99_android" +DEFAULT_CHROME_ANDROID = "chrome131_android" REAL_TARGET_MAP = { @@ -60,7 +61,7 @@ "edge": "edge101", "safari": "safari17_0", "safari_ios": "safari17_2_ios", - "chrome_android": "chrome99_android", + "chrome_android": "chrome131_android", } @@ -95,6 +96,7 @@ class BrowserType(str, Enum): # todo: remove in version 1.x chrome124 = "chrome124" chrome131 = "chrome131" chrome99_android = "chrome99_android" + chrome131_android = "chrome131_android" safari15_3 = "safari15_3" safari15_5 = "safari15_5" safari17_0 = "safari17_0" diff --git a/docs/impersonate.rst b/docs/impersonate.rst index 90ac9b5..8300380 100644 --- a/docs/impersonate.rst +++ b/docs/impersonate.rst @@ -27,6 +27,7 @@ to specify your own customized fingerprints. See below for details. - chrome124 :sup:`3` - chrome131 :sup:`4` - chrome99_android +- chrome131_android :sup:`4` - edge99 - edge101 - safari15_3 :sup:`2` diff --git a/pyproject.toml b/pyproject.toml index 227427f..6d68086 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [project] name = "curl_cffi" -version = "0.8.0b6" +version = "0.8.0b7" authors = [{ name = "Lyonnet", email = "infinitesheldon@gmail.com" }] description = "libcurl ffi bindings for Python, with impersonation support." license = { file = "LICENSE" } @@ -21,6 +21,7 @@ classifiers = [ "Programming Language :: Python :: 3.10", "Programming Language :: Python :: 3.11", "Programming Language :: Python :: 3.12", + "Programming Language :: Python :: 3.13", ] diff --git a/scripts/build.py b/scripts/build.py index 97e189b..1899461 100644 --- a/scripts/build.py +++ b/scripts/build.py @@ -10,7 +10,7 @@ from cffi import FFI # this is the upstream libcurl-impersonate version -__version__ = "0.8.1" +__version__ = "0.8.2" def detect_arch():