Skip to content

Commit

Permalink
Add Chrome 131
Browse files Browse the repository at this point in the history
  • Loading branch information
lexiforest committed Nov 29, 2024
1 parent fe117c2 commit a446fe7
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 20 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.0
VERSION := 0.8.1
CURL_VERSION := curl-8_7_1

$(CURL_VERSION):
Expand Down
16 changes: 1 addition & 15 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,21 +19,6 @@ Only Python 3.8 and above are supported. Python 3.7 has reached its end of life.

------

<a href="https://scrapfly.io/?utm_source=github&utm_medium=sponsoring&utm_campaign=curl_cffi" target="_blank"><img src="https://raw.githubusercontent.com/lexiforest/curl_cffi/main/assets/scrapfly.png" alt="Scrapfly.io" width="149"></a>

[Scrapfly](https://scrapfly.io/?utm_source=github&utm_medium=sponsoring&utm_campaign=curl_cffi)
is an enterprise-grade solution providing Web Scraping API that aims to simplify the
scraping process by managing everything: real browser rendering, rotating proxies, and
fingerprints (TLS, HTTP, browser) to bypass all major anti-bots. Scrapfly also unlocks the
observability by providing an analytical dashboard and measuring the success rate/block
rate in detail.

Scrapfly is a good solution if you are looking for a cloud-managed solution for `curl_cffi`.
If you are managing TLS/HTTP fingerprint by yourself with `curl_cffi`, they also maintain a
[curl to python converter](https://scrapfly.io/web-scraping-tools/curl-python/curl_cffi).

------

### Bypass Cloudflare with API

<a href="https://yescaptcha.com/i/stfnIO" target="_blank"><img src="https://raw.githubusercontent.com/lexiforest/curl_cffi/main/assets/yescaptcha.png" alt="Yes Captcha!" height="47" width="149"></a>
Expand Down Expand Up @@ -166,6 +151,7 @@ to specify your own customized fingerprints. See the [docs on impersonatation](h
- chrome120 <sup>[1]</sup>
- chrome123 <sup>[3]</sup>
- chrome124 <sup>[3]</sup>
- chrome131 <sup>[4]</sup>
- chrome99_android
- edge99
- edge101
Expand Down
7 changes: 5 additions & 2 deletions curl_cffi/requests/impersonate.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
"chrome120",
"chrome123",
"chrome124",
"chrome131",
"chrome99_android",
# Safari
"safari15_3",
Expand All @@ -47,15 +48,15 @@
]


DEFAULT_CHROME = "chrome124"
DEFAULT_CHROME = "chrome131"
DEFAULT_EDGE = "edge101"
DEFAULT_SAFARI = "safari18_0"
DEFAULT_SAFARI_IOS = "safari18_0_ios"
DEFAULT_CHROME_ANDROID = "chrome99_android"


REAL_TARGET_MAP = {
"chrome": "chrome124",
"chrome": "chrome131",
"edge": "edge101",
"safari": "safari17_0",
"safari_ios": "safari17_2_ios",
Expand Down Expand Up @@ -92,6 +93,7 @@ class BrowserType(str, Enum): # todo: remove in version 1.x
chrome120 = "chrome120"
chrome123 = "chrome123"
chrome124 = "chrome124"
chrome131 = "chrome131"
chrome99_android = "chrome99_android"
safari15_3 = "safari15_3"
safari15_5 = "safari15_5"
Expand Down Expand Up @@ -285,6 +287,7 @@ class ExtraFpDict(TypedDict, total=False):
24: "P-384",
25: "P-521",
29: "X25519",
4588: "X25519MLKEM768",
25497: "X25519Kyber768Draft00",
}

Expand Down
2 changes: 1 addition & 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.0b1"
version = "0.8.0b2"
authors = [{ name = "Lyonnet", email = "[email protected]" }]
description = "libcurl ffi bindings for Python, with impersonation support."
license = { file = "LICENSE" }
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.0"
__version__ = "0.8.1"


def detect_arch():
Expand Down

0 comments on commit a446fe7

Please sign in to comment.