Skip to content

Commit

Permalink
Add Chrome 131 for Android
Browse files Browse the repository at this point in the history
  • Loading branch information
lexiforest committed Dec 2, 2024
1 parent 8db93b4 commit b9c693d
Show file tree
Hide file tree
Showing 6 changed files with 10 additions and 5 deletions.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -153,6 +153,7 @@ to specify your own customized fingerprints. See the [docs on impersonatation](h
- chrome124 <sup>[3]</sup>
- chrome131 <sup>[4]</sup>
- chrome99_android
- chrome131_android <sup>[4]</sup>
- edge99
- edge101
- safari15_3 <sup>[2]</sup>
Expand Down
6 changes: 4 additions & 2 deletions curl_cffi/requests/impersonate.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
"chrome124",
"chrome131",
"chrome99_android",
"chrome131_android",
# Safari
"safari15_3",
"safari15_5",
Expand Down Expand Up @@ -52,15 +53,15 @@
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 = {
"chrome": "chrome131",
"edge": "edge101",
"safari": "safari17_0",
"safari_ios": "safari17_2_ios",
"chrome_android": "chrome99_android",
"chrome_android": "chrome131_android",
}


Expand Down Expand Up @@ -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"
Expand Down
1 change: 1 addition & 0 deletions docs/impersonate.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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`
Expand Down
3 changes: 2 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[project]
name = "curl_cffi"
version = "0.8.0b6"
version = "0.8.0b7"
authors = [{ name = "Lyonnet", email = "[email protected]" }]
description = "libcurl ffi bindings for Python, with impersonation support."
license = { file = "LICENSE" }
Expand All @@ -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",
]


Expand Down
2 changes: 1 addition & 1 deletion scripts/build.py
Original file line number Diff line number Diff line change
Expand Up @@ -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():
Expand Down

0 comments on commit b9c693d

Please sign in to comment.