Skip to content

Commit 8bb5ace

Browse files
committed
v2.2.5
1 parent 9846a96 commit 8bb5ace

File tree

2 files changed

+6
-11
lines changed

2 files changed

+6
-11
lines changed

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "rnet"
3-
version = "2.2.1"
3+
version = "2.2.5"
44
description = "A blazing-fast Python HTTP client with TLS fingerprint"
55
edition = "2024"
66
rust-version = "1.85.0"

README.md

Lines changed: 5 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88

99
> 🚀 Help me work seamlessly with open source sharing by [sponsoring me on GitHub](https://github.com/0x676e67/0x676e67/blob/main/SPONSOR.md)
1010
11-
A blazing-fast Python HTTP client with advanced browser fingerprinting. Precisely emulates Chrome, Firefox, Safari, and OkHttp, accurately replicating TLS/HTTP2 signatures. Built on [rquest](https://github.com/0x676e67/rquest) for exceptional speed and a clean, intuitive API.
11+
A blazing-fast Python HTTP Client with advanced browser fingerprinting. Precisely emulates **Chrome**, **Firefox**, **Safari**, and **OkHttp**, accurately replicating **TLS/HTTP2** signatures. Built on [rquest](https://github.com/0x676e67/rquest) for exceptional speed and a clean, intuitive API.
1212

1313
## Features
1414

@@ -43,16 +43,11 @@ from rnet import Impersonate, Client
4343

4444

4545
async def main():
46+
# Build a client
4647
client = Client(impersonate=Impersonate.Firefox136)
47-
resp = await client.get("https://tls.browserleaks.com")
48-
print("Status Code: ", resp.status_code)
49-
print("Version: ", resp.version)
50-
print("Response URL: ", resp.url)
51-
print("Headers: ", resp.headers)
52-
print("Cookies: ", resp.cookies)
53-
print("Encoding: ", resp.encoding)
54-
print("Content-Length: ", resp.content_length)
55-
print("Remote Address: ", resp.remote_addr)
48+
# Use the API you're already familiar with
49+
resp = await client.get("https://tls.peet.ws/api/all")
50+
# Print the response
5651
print(await resp.text())
5752

5853

0 commit comments

Comments
 (0)