Skip to main content

The fastest python HTTP client that can impersonate web browsers

Project description

Rust Tls Client

介绍

基于 rust wreq和wreq_util 编译到python的 tls 请求库

模拟 chrome 请求头顺序和 cookie分割发送策略

GET /signin?next=%2Fmission%2Fdaily%2Fredeem HTTP/2
:method: GET
:authority: www.v2ex.com
:scheme: https
:path: /signin?next=%2Fmission%2Fdaily%2Fredeem
user-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/143.0.0.0 Safari/537.36
accept: */*
sec-fetch-site: none
sec-fetch-mode: cors
sec-fetch-dest: empty
sec-fetch-storage-access: active
accept-encoding: gzip, deflate, br, zstd
accept-language: en,en-US;q=0.9,zh-CN;q=0.8,zh;q=0.7,ru;q=0.6
cookie: _ga=GA1.2.1675575356.1750432365
cookie: FCCDCF=%5Bnull%2Cnull%2Cnull%2C%5B%22CQZsTEAQZsTEAEsACBENCBFoAP_gAEPgACiQK1IB_C7EbCFCiDJ3IKMEMAhHABBAYsAwAAYBAwAADBIQIAQCgkEYBASAFCACCAAAKASBAAAgCAAAAUAAIAAVAABAAAwAIBAIIAAAgAAAAEAIAAAACIAAEQCAAAAEAEAAkAgAAAIASAAAAAAAAACBAAAAAAAAAAAAAAAABAAAAQAAQAAAAAAAiAAAAAAAABAIAAAAAAAAAAAAAAAAAAAAAAgAAAAAAAAAABAAAAAAAQR2QD-F2I2EKFEGCuQUYIYBCuACAAxYBgAAwCBgAAGCQgQAgFJIIkCAEAIEAAEAAAQAgCAABQEBAAAIAAAAAqAACAABgAQCAQQIABAAAAgIAAAAAAEQAAIgEAAAAIAIABABAAAAQAkAAAAAAAAAECAAAAAAAAAAAAAAAAAAAAAEABgAAAAAABEAAAAAAAACAQIAAA%22%2C%222~61.89.122.161.184.196.230.314.442.445.494.550.576.827.1029.1033.1046.1047.1051.1097.1126.1166.1301.1342.1415.1725.1765.1942.1958.1987.2068.2072.2074.2107.2213.2219.2223.2224.2328.2331.2387.2416.2501.2567.2568.2575.2657.2686.2778.2869.2878.2908.2920.2963.3005.3023.3100.3126.3219.3234.3235.3253.3309.3731.6931.8931.13731.15731.33931~dv.%22%2C%225D55DE1F-1304-4471-9D9C-D19BCEC0C04A%22%5D%2Cnull%2Cnull%2C%5B%5B32%2C%22%5B%5C%22420cfe06-6394-43c0-ba1c-8fdc38643c72%5C%22%2C%5B1761636987%2C63000000%5D%5D%22%5D%5D%5D
cookie: V2EX_LANG=zhcn
cookie: PB3_SESSION="2|1:0|10:1767579631|11:PB3_SESSION|36:djJleDoxNTQuOTIuMTMwLjkzOjQ2MzA4NTgy|c272fded339300f44dffb8f93275fc603f2ef96b8a2d497f872a2984be2b2ce0"
cookie: _gid=GA1.2.1131117405.1767952329
cookie: __gads=ID=b8fbeab9e8f510fd:T=1750432365:RT=1767954783:S=ALNI_MYyjkJ-gpGCy6vntPOb8daD2mSOew
cookie: __gpi=UID=00001135321a585c:T=1750432365:RT=1767954783:S=ALNI_MaSg-aqHFii45QkMrTYsKNCuwcFKg
cookie: __eoi=ID=0bd1b724883e09d4:T=1766045702:RT=1767954783:S=AA-AfjaJVxeIDtEZDgn1nbxSPRQ6
cookie: _ga_5RR9SH3ZV1=GS2.2.s1767954785$o312$g1$t1767954829$j16$l0$h0
cookie: FCNEC=%5B%5B%22AKsRol-ZKjIiRwUt-jIgMLRlveLAj-8Qmh6NrxQ9UK8KJ59k5aWrLWFrjAL-ubqDvL-jWXt1dhqRp3VNlmDg5IutANQkLHadTe1Amgl_1peXj8biJwiewZ00Fr1AHHUMIVhG90edSAodTnV97URImTkFievKB55_8w%3D%3D%22%5D%5D
priority: u=1, i

编译过程

# 安装 maturin(Rust-Python 构建工具)
pip install maturin

# 以开发模式构建和安装
maturin develop --release

# 发布到pypi
maturin publish

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

rust_tls_client-0.1.1.tar.gz (53.0 kB view details)

Uploaded Source

Built Distributions

If you're not sure about the file name format, learn more about wheel file names.

rust_tls_client-0.1.1-pp311-pypy311_pp73-manylinux_2_28_x86_64.whl (3.6 MB view details)

Uploaded PyPymanylinux: glibc 2.28+ x86-64

rust_tls_client-0.1.1-cp38-abi3-win_amd64.whl (3.3 MB view details)

Uploaded CPython 3.8+Windows x86-64

rust_tls_client-0.1.1-cp38-abi3-manylinux_2_28_x86_64.whl (3.6 MB view details)

Uploaded CPython 3.8+manylinux: glibc 2.28+ x86-64

rust_tls_client-0.1.1-cp38-abi3-macosx_11_0_arm64.whl (3.0 MB view details)

Uploaded CPython 3.8+macOS 11.0+ ARM64

rust_tls_client-0.1.1-cp38-abi3-macosx_10_12_x86_64.whl (3.3 MB view details)

Uploaded CPython 3.8+macOS 10.12+ x86-64

File details

Details for the file rust_tls_client-0.1.1.tar.gz.

File metadata

  • Download URL: rust_tls_client-0.1.1.tar.gz
  • Upload date:
  • Size: 53.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: maturin/1.9.4

File hashes

Hashes for rust_tls_client-0.1.1.tar.gz
Algorithm Hash digest
SHA256 84ed41d826ad7eb56ca7529332850c21ab83bc46bb076c0660eb956b860e549a
MD5 94b85cbec0df3ed3aecdf2d244df32c2
BLAKE2b-256 8410e9442c7eba9947309a02cddfbffadad650207af81f4edf659770812aac6e

See more details on using hashes here.

File details

Details for the file rust_tls_client-0.1.1-pp311-pypy311_pp73-manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for rust_tls_client-0.1.1-pp311-pypy311_pp73-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 ebbde86f78186945a6d1e324c59a111f1ba6ec2de81b518d4068f8636deff52a
MD5 a2febd0e3bab23696af8f5c579a1ad12
BLAKE2b-256 aee60d5eeef920d1039cc422ee3de1a13adad7022b28993791adeb21808fedb0

See more details on using hashes here.

File details

Details for the file rust_tls_client-0.1.1-cp38-abi3-win_amd64.whl.

File metadata

File hashes

Hashes for rust_tls_client-0.1.1-cp38-abi3-win_amd64.whl
Algorithm Hash digest
SHA256 801f4dd6ff27ad4adc5379328152e80553f63f22ce1e0e78f6738ce0cc5386e5
MD5 227baeba367815d2867e6b64d4903f7c
BLAKE2b-256 0c42e2023a92cf4958dcc1bf4bfbf0064a7f5c856637b16d30c6281ae6ce3d06

See more details on using hashes here.

File details

Details for the file rust_tls_client-0.1.1-cp38-abi3-manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for rust_tls_client-0.1.1-cp38-abi3-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 0ab4494bdea37649b9ca5d324b74e52f954ea4d50bbc27837bd44724f8d7bf9d
MD5 436a2ee20857cb3ed373f50374be64e8
BLAKE2b-256 2a1b1876c8ae925aaa9c90a24360ef244beb576681fe97172564f648b92502e5

See more details on using hashes here.

File details

Details for the file rust_tls_client-0.1.1-cp38-abi3-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for rust_tls_client-0.1.1-cp38-abi3-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 de3938333ad9320da501013ec8f7340da9218898d81fadf2f1646675cc3eef99
MD5 990e8c39bc409160c7116555040021d7
BLAKE2b-256 a99eeaa5471a6bdcdafefea839fc49a3c693f05d5dc37f5621677dad859e354b

See more details on using hashes here.

File details

Details for the file rust_tls_client-0.1.1-cp38-abi3-macosx_10_12_x86_64.whl.

File metadata

File hashes

Hashes for rust_tls_client-0.1.1-cp38-abi3-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 698f5e82e3e020ffca0dfadbf0ebd20856033ddb7cb219f3d217a3968cec0338
MD5 33a26fac28ba44d250d357e82b110b97
BLAKE2b-256 c53e7e5fb0ce295abac011c9fba8a2a7dfdf27b1f773111b1910539881a5e424

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page