stealthhttp 0.6.2__tar.gz → 0.9.1__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (325) hide show
  1. {stealthhttp-0.6.2 → stealthhttp-0.9.1}/Cargo.lock +8 -8
  2. {stealthhttp-0.6.2 → stealthhttp-0.9.1}/PKG-INFO +4 -1
  3. {stealthhttp-0.6.2 → stealthhttp-0.9.1}/pyproject.toml +3 -2
  4. {stealthhttp-0.6.2 → stealthhttp-0.9.1}/python/stealthhttp/__init__.py +49 -4
  5. {stealthhttp-0.6.2 → stealthhttp-0.9.1}/python/stealthhttp/_fallback.py +2 -3
  6. {stealthhttp-0.6.2 → stealthhttp-0.9.1}/python/stealthhttp/auto_bypass.py +107 -67
  7. {stealthhttp-0.6.2 → stealthhttp-0.9.1}/python/stealthhttp/auto_profile.py +19 -19
  8. stealthhttp-0.9.1/python/stealthhttp/auto_update.py +118 -0
  9. {stealthhttp-0.6.2 → stealthhttp-0.9.1}/python/stealthhttp/backends/curl_backend.py +1 -1
  10. {stealthhttp-0.6.2 → stealthhttp-0.9.1}/python/stealthhttp/backends/native_backend.py +8 -6
  11. {stealthhttp-0.6.2 → stealthhttp-0.9.1}/python/stealthhttp/backends/wreq_backend.py +1 -1
  12. {stealthhttp-0.6.2 → stealthhttp-0.9.1}/python/stealthhttp/browser_pool.py +1 -1
  13. {stealthhttp-0.6.2 → stealthhttp-0.9.1}/python/stealthhttp/bypasses/__init__.py +14 -14
  14. {stealthhttp-0.6.2 → stealthhttp-0.9.1}/python/stealthhttp/bypasses/akamai.py +3 -0
  15. {stealthhttp-0.6.2 → stealthhttp-0.9.1}/python/stealthhttp/bypasses/captcha.py +3 -2
  16. {stealthhttp-0.6.2 → stealthhttp-0.9.1}/python/stealthhttp/bypasses/flow.py +6 -2
  17. stealthhttp-0.9.1/python/stealthhttp/bypasses/perimeterx.py +367 -0
  18. {stealthhttp-0.6.2 → stealthhttp-0.9.1}/python/stealthhttp/bypasses/solver.py +21 -1
  19. {stealthhttp-0.6.2 → stealthhttp-0.9.1}/python/stealthhttp/captcha_farm.py +1 -1
  20. {stealthhttp-0.6.2 → stealthhttp-0.9.1}/python/stealthhttp/cdp_solver.py +2 -2
  21. {stealthhttp-0.6.2 → stealthhttp-0.9.1}/python/stealthhttp/clienthints.py +4 -2
  22. {stealthhttp-0.6.2 → stealthhttp-0.9.1}/python/stealthhttp/collectors/akamai.py +50 -16
  23. {stealthhttp-0.6.2 → stealthhttp-0.9.1}/python/stealthhttp/collectors/datadome.py +17 -0
  24. {stealthhttp-0.6.2 → stealthhttp-0.9.1}/python/stealthhttp/collectors/imperva.py +17 -0
  25. {stealthhttp-0.6.2 → stealthhttp-0.9.1}/python/stealthhttp/collectors/kasada.py +16 -0
  26. {stealthhttp-0.6.2 → stealthhttp-0.9.1}/python/stealthhttp/collectors/perimeterx.py +29 -2
  27. {stealthhttp-0.6.2 → stealthhttp-0.9.1}/python/stealthhttp/collectors/shape.py +13 -0
  28. {stealthhttp-0.6.2 → stealthhttp-0.9.1}/python/stealthhttp/cookies.py +7 -0
  29. {stealthhttp-0.6.2 → stealthhttp-0.9.1}/python/stealthhttp/detection.py +1 -1
  30. {stealthhttp-0.6.2 → stealthhttp-0.9.1}/python/stealthhttp/geo.py +1 -1
  31. {stealthhttp-0.6.2 → stealthhttp-0.9.1}/python/stealthhttp/identity.py +5 -5
  32. stealthhttp-0.9.1/python/stealthhttp/jsdb_ext.py +313 -0
  33. {stealthhttp-0.6.2 → stealthhttp-0.9.1}/python/stealthhttp/jsenv.py +204 -110
  34. stealthhttp-0.9.1/python/stealthhttp/jsenv_types.py +159 -0
  35. {stealthhttp-0.6.2 → stealthhttp-0.9.1}/python/stealthhttp/prepare.py +13 -0
  36. {stealthhttp-0.6.2 → stealthhttp-0.9.1}/python/stealthhttp/response.py +3 -0
  37. {stealthhttp-0.6.2 → stealthhttp-0.9.1}/python/stealthhttp/selfcheck.py +3 -2
  38. {stealthhttp-0.6.2 → stealthhttp-0.9.1}/python/stealthhttp/session.py +73 -7
  39. {stealthhttp-0.6.2 → stealthhttp-0.9.1}/python/stealthhttp/session_ext.py +28 -3
  40. {stealthhttp-0.6.2 → stealthhttp-0.9.1}/python/stealthhttp/site_recipes.py +1 -1
  41. {stealthhttp-0.6.2 → stealthhttp-0.9.1}/python/stealthhttp/solving/audio.py +1 -1
  42. {stealthhttp-0.6.2 → stealthhttp-0.9.1}/python/stealthhttp/solving/browser.py +3 -3
  43. {stealthhttp-0.6.2 → stealthhttp-0.9.1}/python/stealthhttp/solving/providers.py +1 -1
  44. {stealthhttp-0.6.2 → stealthhttp-0.9.1}/python/stealthhttp/stealth_audit.py +1 -1
  45. {stealthhttp-0.6.2 → stealthhttp-0.9.1}/python/stealthhttp/tls_clone.py +1 -1
  46. {stealthhttp-0.6.2 → stealthhttp-0.9.1}/src/fingerprint/headers.rs +14 -0
  47. {stealthhttp-0.6.2 → stealthhttp-0.9.1}/src/lib.rs +2 -2
  48. {stealthhttp-0.6.2 → stealthhttp-0.9.1}/src/transport/engine.rs +15 -4
  49. {stealthhttp-0.6.2 → stealthhttp-0.9.1}/src/transport/tls.rs +30 -1
  50. {stealthhttp-0.6.2 → stealthhttp-0.9.1}/tests/test_bypasses.py +9 -1
  51. {stealthhttp-0.6.2 → stealthhttp-0.9.1}/tests/test_fingerprint.py +7 -4
  52. {stealthhttp-0.6.2 → stealthhttp-0.9.1}/tests/test_session.py +53 -21
  53. stealthhttp-0.6.2/python/stealthhttp/bypasses/perimeterx.py +0 -269
  54. {stealthhttp-0.6.2 → stealthhttp-0.9.1}/.cargo/config.toml +0 -0
  55. {stealthhttp-0.6.2 → stealthhttp-0.9.1}/.github/workflows/release.yml +0 -0
  56. {stealthhttp-0.6.2 → stealthhttp-0.9.1}/.gitignore +0 -0
  57. {stealthhttp-0.6.2 → stealthhttp-0.9.1}/CHANGELOG.md +0 -0
  58. {stealthhttp-0.6.2 → stealthhttp-0.9.1}/Cargo.toml +0 -0
  59. {stealthhttp-0.6.2 → stealthhttp-0.9.1}/LICENSE +0 -0
  60. {stealthhttp-0.6.2 → stealthhttp-0.9.1}/README.md +0 -0
  61. {stealthhttp-0.6.2 → stealthhttp-0.9.1}/benchmarks/bench.py +0 -0
  62. {stealthhttp-0.6.2 → stealthhttp-0.9.1}/benchmarks/bench_native.py +0 -0
  63. {stealthhttp-0.6.2 → stealthhttp-0.9.1}/examples/basic.py +0 -0
  64. {stealthhttp-0.6.2 → stealthhttp-0.9.1}/python/stealthhttp/_loader.py +0 -0
  65. {stealthhttp-0.6.2 → stealthhttp-0.9.1}/python/stealthhttp/_rotation.py +0 -0
  66. {stealthhttp-0.6.2 → stealthhttp-0.9.1}/python/stealthhttp/adaptive_persona.py +0 -0
  67. {stealthhttp-0.6.2 → stealthhttp-0.9.1}/python/stealthhttp/ambient.py +0 -0
  68. {stealthhttp-0.6.2 → stealthhttp-0.9.1}/python/stealthhttp/antidetect.py +0 -0
  69. {stealthhttp-0.6.2 → stealthhttp-0.9.1}/python/stealthhttp/async_session.py +0 -0
  70. {stealthhttp-0.6.2 → stealthhttp-0.9.1}/python/stealthhttp/backends/__init__.py +0 -0
  71. {stealthhttp-0.6.2 → stealthhttp-0.9.1}/python/stealthhttp/backends/base.py +0 -0
  72. {stealthhttp-0.6.2 → stealthhttp-0.9.1}/python/stealthhttp/behavior.py +0 -0
  73. {stealthhttp-0.6.2 → stealthhttp-0.9.1}/python/stealthhttp/browser_cookies.py +0 -0
  74. {stealthhttp-0.6.2 → stealthhttp-0.9.1}/python/stealthhttp/browser_fsm.py +0 -0
  75. {stealthhttp-0.6.2 → stealthhttp-0.9.1}/python/stealthhttp/browsing.py +0 -0
  76. {stealthhttp-0.6.2 → stealthhttp-0.9.1}/python/stealthhttp/bypasses/cloudflare.py +0 -0
  77. {stealthhttp-0.6.2 → stealthhttp-0.9.1}/python/stealthhttp/bypasses/datadome.py +0 -0
  78. {stealthhttp-0.6.2 → stealthhttp-0.9.1}/python/stealthhttp/bypasses/imperva.py +0 -0
  79. {stealthhttp-0.6.2 → stealthhttp-0.9.1}/python/stealthhttp/bypasses/kasada.py +0 -0
  80. {stealthhttp-0.6.2 → stealthhttp-0.9.1}/python/stealthhttp/bypasses/shape.py +0 -0
  81. {stealthhttp-0.6.2 → stealthhttp-0.9.1}/python/stealthhttp/canvas_webgl_sim.py +0 -0
  82. {stealthhttp-0.6.2 → stealthhttp-0.9.1}/python/stealthhttp/capabilities.py +0 -0
  83. {stealthhttp-0.6.2 → stealthhttp-0.9.1}/python/stealthhttp/captcha.py +0 -0
  84. {stealthhttp-0.6.2 → stealthhttp-0.9.1}/python/stealthhttp/cdp_transport.py +0 -0
  85. {stealthhttp-0.6.2 → stealthhttp-0.9.1}/python/stealthhttp/challenge.py +0 -0
  86. {stealthhttp-0.6.2 → stealthhttp-0.9.1}/python/stealthhttp/challenge_vm.py +0 -0
  87. {stealthhttp-0.6.2 → stealthhttp-0.9.1}/python/stealthhttp/coherence.py +0 -0
  88. {stealthhttp-0.6.2 → stealthhttp-0.9.1}/python/stealthhttp/collectors/__init__.py +0 -0
  89. {stealthhttp-0.6.2 → stealthhttp-0.9.1}/python/stealthhttp/consistency.py +0 -0
  90. {stealthhttp-0.6.2 → stealthhttp-0.9.1}/python/stealthhttp/cookie_intel.py +0 -0
  91. {stealthhttp-0.6.2 → stealthhttp-0.9.1}/python/stealthhttp/cover_traffic.py +0 -0
  92. {stealthhttp-0.6.2 → stealthhttp-0.9.1}/python/stealthhttp/device_db.py +0 -0
  93. {stealthhttp-0.6.2 → stealthhttp-0.9.1}/python/stealthhttp/dns_intel.py +0 -0
  94. {stealthhttp-0.6.2 → stealthhttp-0.9.1}/python/stealthhttp/dns_tunnel.py +0 -0
  95. {stealthhttp-0.6.2 → stealthhttp-0.9.1}/python/stealthhttp/doh.py +0 -0
  96. {stealthhttp-0.6.2 → stealthhttp-0.9.1}/python/stealthhttp/entropy_mask.py +0 -0
  97. {stealthhttp-0.6.2 → stealthhttp-0.9.1}/python/stealthhttp/error_analysis.py +0 -0
  98. {stealthhttp-0.6.2 → stealthhttp-0.9.1}/python/stealthhttp/exceptions.py +0 -0
  99. {stealthhttp-0.6.2 → stealthhttp-0.9.1}/python/stealthhttp/fingerprint_diff.py +0 -0
  100. {stealthhttp-0.6.2 → stealthhttp-0.9.1}/python/stealthhttp/forms.py +0 -0
  101. {stealthhttp-0.6.2 → stealthhttp-0.9.1}/python/stealthhttp/graphql.py +0 -0
  102. {stealthhttp-0.6.2 → stealthhttp-0.9.1}/python/stealthhttp/h2_frames.py +0 -0
  103. {stealthhttp-0.6.2 → stealthhttp-0.9.1}/python/stealthhttp/har.py +0 -0
  104. {stealthhttp-0.6.2 → stealthhttp-0.9.1}/python/stealthhttp/header_canon.py +0 -0
  105. {stealthhttp-0.6.2 → stealthhttp-0.9.1}/python/stealthhttp/health_monitor.py +0 -0
  106. {stealthhttp-0.6.2 → stealthhttp-0.9.1}/python/stealthhttp/honeypot_oracle.py +0 -0
  107. {stealthhttp-0.6.2 → stealthhttp-0.9.1}/python/stealthhttp/hooks.py +0 -0
  108. {stealthhttp-0.6.2 → stealthhttp-0.9.1}/python/stealthhttp/hsts.py +0 -0
  109. {stealthhttp-0.6.2 → stealthhttp-0.9.1}/python/stealthhttp/httpcache.py +0 -0
  110. {stealthhttp-0.6.2 → stealthhttp-0.9.1}/python/stealthhttp/humanize.py +0 -0
  111. {stealthhttp-0.6.2 → stealthhttp-0.9.1}/python/stealthhttp/immortal.py +0 -0
  112. {stealthhttp-0.6.2 → stealthhttp-0.9.1}/python/stealthhttp/js_sandbox.py +0 -0
  113. {stealthhttp-0.6.2 → stealthhttp-0.9.1}/python/stealthhttp/jsdb.py +0 -0
  114. {stealthhttp-0.6.2 → stealthhttp-0.9.1}/python/stealthhttp/lifecycle.py +0 -0
  115. {stealthhttp-0.6.2 → stealthhttp-0.9.1}/python/stealthhttp/lint.py +0 -0
  116. {stealthhttp-0.6.2 → stealthhttp-0.9.1}/python/stealthhttp/mesh.py +0 -0
  117. {stealthhttp-0.6.2 → stealthhttp-0.9.1}/python/stealthhttp/middleware.py +0 -0
  118. {stealthhttp-0.6.2 → stealthhttp-0.9.1}/python/stealthhttp/multipart.py +0 -0
  119. {stealthhttp-0.6.2 → stealthhttp-0.9.1}/python/stealthhttp/parsing.py +0 -0
  120. {stealthhttp-0.6.2 → stealthhttp-0.9.1}/python/stealthhttp/poison_detect.py +0 -0
  121. {stealthhttp-0.6.2 → stealthhttp-0.9.1}/python/stealthhttp/pow.py +0 -0
  122. {stealthhttp-0.6.2 → stealthhttp-0.9.1}/python/stealthhttp/predictive_rate.py +0 -0
  123. {stealthhttp-0.6.2 → stealthhttp-0.9.1}/python/stealthhttp/proto_chameleon.py +0 -0
  124. {stealthhttp-0.6.2 → stealthhttp-0.9.1}/python/stealthhttp/proxy.py +0 -0
  125. {stealthhttp-0.6.2 → stealthhttp-0.9.1}/python/stealthhttp/proxy_scoring.py +0 -0
  126. {stealthhttp-0.6.2 → stealthhttp-0.9.1}/python/stealthhttp/quic_fingerprint.py +0 -0
  127. {stealthhttp-0.6.2 → stealthhttp-0.9.1}/python/stealthhttp/record_replay.py +0 -0
  128. {stealthhttp-0.6.2 → stealthhttp-0.9.1}/python/stealthhttp/redirect_intel.py +0 -0
  129. {stealthhttp-0.6.2 → stealthhttp-0.9.1}/python/stealthhttp/replay_attack.py +0 -0
  130. {stealthhttp-0.6.2 → stealthhttp-0.9.1}/python/stealthhttp/request_graph.py +0 -0
  131. {stealthhttp-0.6.2 → stealthhttp-0.9.1}/python/stealthhttp/resp_diff.py +0 -0
  132. {stealthhttp-0.6.2 → stealthhttp-0.9.1}/python/stealthhttp/response_decoder.py +0 -0
  133. {stealthhttp-0.6.2 → stealthhttp-0.9.1}/python/stealthhttp/response_intel.py +0 -0
  134. {stealthhttp-0.6.2 → stealthhttp-0.9.1}/python/stealthhttp/retry.py +0 -0
  135. {stealthhttp-0.6.2 → stealthhttp-0.9.1}/python/stealthhttp/rhythm.py +0 -0
  136. {stealthhttp-0.6.2 → stealthhttp-0.9.1}/python/stealthhttp/rotation.py +0 -0
  137. {stealthhttp-0.6.2 → stealthhttp-0.9.1}/python/stealthhttp/self_audit.py +0 -0
  138. {stealthhttp-0.6.2 → stealthhttp-0.9.1}/python/stealthhttp/sensors.py +0 -0
  139. {stealthhttp-0.6.2 → stealthhttp-0.9.1}/python/stealthhttp/session_coord.py +0 -0
  140. {stealthhttp-0.6.2 → stealthhttp-0.9.1}/python/stealthhttp/session_dna.py +0 -0
  141. {stealthhttp-0.6.2 → stealthhttp-0.9.1}/python/stealthhttp/smart_proxy.py +0 -0
  142. {stealthhttp-0.6.2 → stealthhttp-0.9.1}/python/stealthhttp/smart_retry.py +0 -0
  143. {stealthhttp-0.6.2 → stealthhttp-0.9.1}/python/stealthhttp/solving/__init__.py +0 -0
  144. {stealthhttp-0.6.2 → stealthhttp-0.9.1}/python/stealthhttp/solving/base.py +0 -0
  145. {stealthhttp-0.6.2 → stealthhttp-0.9.1}/python/stealthhttp/solving/local.py +0 -0
  146. {stealthhttp-0.6.2 → stealthhttp-0.9.1}/python/stealthhttp/solving/orchestrator.py +0 -0
  147. {stealthhttp-0.6.2 → stealthhttp-0.9.1}/python/stealthhttp/solving/vision.py +0 -0
  148. {stealthhttp-0.6.2 → stealthhttp-0.9.1}/python/stealthhttp/strategy.py +0 -0
  149. {stealthhttp-0.6.2 → stealthhttp-0.9.1}/python/stealthhttp/synth_fingerprint.py +0 -0
  150. {stealthhttp-0.6.2 → stealthhttp-0.9.1}/python/stealthhttp/tcp_tuning.py +0 -0
  151. {stealthhttp-0.6.2 → stealthhttp-0.9.1}/python/stealthhttp/tests/test_cdp_solver.py +0 -0
  152. {stealthhttp-0.6.2 → stealthhttp-0.9.1}/python/stealthhttp/tests/test_features_v3.py +0 -0
  153. {stealthhttp-0.6.2 → stealthhttp-0.9.1}/python/stealthhttp/tests/test_features_v3_live.py +0 -0
  154. {stealthhttp-0.6.2 → stealthhttp-0.9.1}/python/stealthhttp/tests/test_v030_features.py +0 -0
  155. {stealthhttp-0.6.2 → stealthhttp-0.9.1}/python/stealthhttp/tests/test_v040_features.py +0 -0
  156. {stealthhttp-0.6.2 → stealthhttp-0.9.1}/python/stealthhttp/tests/test_v050_batch1.py +0 -0
  157. {stealthhttp-0.6.2 → stealthhttp-0.9.1}/python/stealthhttp/tests/test_v050_batch2.py +0 -0
  158. {stealthhttp-0.6.2 → stealthhttp-0.9.1}/python/stealthhttp/tests/test_v050_integrations.py +0 -0
  159. {stealthhttp-0.6.2 → stealthhttp-0.9.1}/python/stealthhttp/tests/test_v050_live.py +0 -0
  160. {stealthhttp-0.6.2 → stealthhttp-0.9.1}/python/stealthhttp/tls_ext.py +0 -0
  161. {stealthhttp-0.6.2 → stealthhttp-0.9.1}/python/stealthhttp/tls_intel.py +0 -0
  162. {stealthhttp-0.6.2 → stealthhttp-0.9.1}/python/stealthhttp/tls_session.py +0 -0
  163. {stealthhttp-0.6.2 → stealthhttp-0.9.1}/python/stealthhttp/traffic.py +0 -0
  164. {stealthhttp-0.6.2 → stealthhttp-0.9.1}/python/stealthhttp/traffic_morph.py +0 -0
  165. {stealthhttp-0.6.2 → stealthhttp-0.9.1}/python/stealthhttp/waf_recon.py +0 -0
  166. {stealthhttp-0.6.2 → stealthhttp-0.9.1}/python/stealthhttp/websocket.py +0 -0
  167. {stealthhttp-0.6.2 → stealthhttp-0.9.1}/python/stealthhttp/ws_tunnel.py +0 -0
  168. {stealthhttp-0.6.2 → stealthhttp-0.9.1}/src/fingerprint/ja3.rs +0 -0
  169. {stealthhttp-0.6.2 → stealthhttp-0.9.1}/src/fingerprint/ja4.rs +0 -0
  170. {stealthhttp-0.6.2 → stealthhttp-0.9.1}/src/fingerprint/mod.rs +0 -0
  171. {stealthhttp-0.6.2 → stealthhttp-0.9.1}/src/fingerprint/profile.rs +0 -0
  172. {stealthhttp-0.6.2 → stealthhttp-0.9.1}/src/pow.rs +0 -0
  173. {stealthhttp-0.6.2 → stealthhttp-0.9.1}/src/proxypool.rs +0 -0
  174. {stealthhttp-0.6.2 → stealthhttp-0.9.1}/src/rotation.rs +0 -0
  175. {stealthhttp-0.6.2 → stealthhttp-0.9.1}/src/transport/decode.rs +0 -0
  176. {stealthhttp-0.6.2 → stealthhttp-0.9.1}/src/transport/mod.rs +0 -0
  177. {stealthhttp-0.6.2 → stealthhttp-0.9.1}/tests/conftest.py +0 -0
  178. {stealthhttp-0.6.2 → stealthhttp-0.9.1}/tests/test_audio.py +0 -0
  179. {stealthhttp-0.6.2 → stealthhttp-0.9.1}/tests/test_bypass.py +0 -0
  180. {stealthhttp-0.6.2 → stealthhttp-0.9.1}/tests/test_bypasses_live.py +0 -0
  181. {stealthhttp-0.6.2 → stealthhttp-0.9.1}/tests/test_emulation.py +0 -0
  182. {stealthhttp-0.6.2 → stealthhttp-0.9.1}/tests/test_features_v2.py +0 -0
  183. {stealthhttp-0.6.2 → stealthhttp-0.9.1}/tests/test_features_v2_live.py +0 -0
  184. {stealthhttp-0.6.2 → stealthhttp-0.9.1}/tests/test_humanize.py +0 -0
  185. {stealthhttp-0.6.2 → stealthhttp-0.9.1}/tests/test_jsemu.py +0 -0
  186. {stealthhttp-0.6.2 → stealthhttp-0.9.1}/tests/test_jsemu_live.py +0 -0
  187. {stealthhttp-0.6.2 → stealthhttp-0.9.1}/tests/test_live_bypass.py +0 -0
  188. {stealthhttp-0.6.2 → stealthhttp-0.9.1}/tests/test_live_detection.py +0 -0
  189. {stealthhttp-0.6.2 → stealthhttp-0.9.1}/tests/test_live_trust.py +0 -0
  190. {stealthhttp-0.6.2 → stealthhttp-0.9.1}/tests/test_new_features.py +0 -0
  191. {stealthhttp-0.6.2 → stealthhttp-0.9.1}/tests/test_policies.py +0 -0
  192. {stealthhttp-0.6.2 → stealthhttp-0.9.1}/tests/test_routing.py +0 -0
  193. {stealthhttp-0.6.2 → stealthhttp-0.9.1}/tests/test_solving.py +0 -0
  194. {stealthhttp-0.6.2 → stealthhttp-0.9.1}/tests/test_vision.py +0 -0
  195. {stealthhttp-0.6.2 → stealthhttp-0.9.1}/vendor/h2/.github/FUNDING.yml +0 -0
  196. {stealthhttp-0.6.2 → stealthhttp-0.9.1}/vendor/h2/.github/workflows/CI.yml +0 -0
  197. {stealthhttp-0.6.2 → stealthhttp-0.9.1}/vendor/h2/.gitignore +0 -0
  198. {stealthhttp-0.6.2 → stealthhttp-0.9.1}/vendor/h2/CHANGELOG.md +0 -0
  199. {stealthhttp-0.6.2 → stealthhttp-0.9.1}/vendor/h2/CONTRIBUTING.md +0 -0
  200. {stealthhttp-0.6.2 → stealthhttp-0.9.1}/vendor/h2/Cargo.toml +0 -0
  201. {stealthhttp-0.6.2 → stealthhttp-0.9.1}/vendor/h2/LICENSE +0 -0
  202. {stealthhttp-0.6.2 → stealthhttp-0.9.1}/vendor/h2/README.md +0 -0
  203. {stealthhttp-0.6.2 → stealthhttp-0.9.1}/vendor/h2/benches/main.rs +0 -0
  204. {stealthhttp-0.6.2 → stealthhttp-0.9.1}/vendor/h2/examples/akamai.rs +0 -0
  205. {stealthhttp-0.6.2 → stealthhttp-0.9.1}/vendor/h2/examples/client.rs +0 -0
  206. {stealthhttp-0.6.2 → stealthhttp-0.9.1}/vendor/h2/examples/server.rs +0 -0
  207. {stealthhttp-0.6.2 → stealthhttp-0.9.1}/vendor/h2/src/client.rs +0 -0
  208. {stealthhttp-0.6.2 → stealthhttp-0.9.1}/vendor/h2/src/codec/error.rs +0 -0
  209. {stealthhttp-0.6.2 → stealthhttp-0.9.1}/vendor/h2/src/codec/framed_read.rs +0 -0
  210. {stealthhttp-0.6.2 → stealthhttp-0.9.1}/vendor/h2/src/codec/framed_write.rs +0 -0
  211. {stealthhttp-0.6.2 → stealthhttp-0.9.1}/vendor/h2/src/codec/mod.rs +0 -0
  212. {stealthhttp-0.6.2 → stealthhttp-0.9.1}/vendor/h2/src/error.rs +0 -0
  213. {stealthhttp-0.6.2 → stealthhttp-0.9.1}/vendor/h2/src/ext.rs +0 -0
  214. {stealthhttp-0.6.2 → stealthhttp-0.9.1}/vendor/h2/src/frame/data.rs +0 -0
  215. {stealthhttp-0.6.2 → stealthhttp-0.9.1}/vendor/h2/src/frame/go_away.rs +0 -0
  216. {stealthhttp-0.6.2 → stealthhttp-0.9.1}/vendor/h2/src/frame/head.rs +0 -0
  217. {stealthhttp-0.6.2 → stealthhttp-0.9.1}/vendor/h2/src/frame/headers.rs +0 -0
  218. {stealthhttp-0.6.2 → stealthhttp-0.9.1}/vendor/h2/src/frame/mod.rs +0 -0
  219. {stealthhttp-0.6.2 → stealthhttp-0.9.1}/vendor/h2/src/frame/ping.rs +0 -0
  220. {stealthhttp-0.6.2 → stealthhttp-0.9.1}/vendor/h2/src/frame/priority.rs +0 -0
  221. {stealthhttp-0.6.2 → stealthhttp-0.9.1}/vendor/h2/src/frame/reason.rs +0 -0
  222. {stealthhttp-0.6.2 → stealthhttp-0.9.1}/vendor/h2/src/frame/reset.rs +0 -0
  223. {stealthhttp-0.6.2 → stealthhttp-0.9.1}/vendor/h2/src/frame/settings.rs +0 -0
  224. {stealthhttp-0.6.2 → stealthhttp-0.9.1}/vendor/h2/src/frame/stream_id.rs +0 -0
  225. {stealthhttp-0.6.2 → stealthhttp-0.9.1}/vendor/h2/src/frame/util.rs +0 -0
  226. {stealthhttp-0.6.2 → stealthhttp-0.9.1}/vendor/h2/src/frame/window_update.rs +0 -0
  227. {stealthhttp-0.6.2 → stealthhttp-0.9.1}/vendor/h2/src/fuzz_bridge.rs +0 -0
  228. {stealthhttp-0.6.2 → stealthhttp-0.9.1}/vendor/h2/src/hpack/decoder.rs +0 -0
  229. {stealthhttp-0.6.2 → stealthhttp-0.9.1}/vendor/h2/src/hpack/encoder.rs +0 -0
  230. {stealthhttp-0.6.2 → stealthhttp-0.9.1}/vendor/h2/src/hpack/header.rs +0 -0
  231. {stealthhttp-0.6.2 → stealthhttp-0.9.1}/vendor/h2/src/hpack/huffman/mod.rs +0 -0
  232. {stealthhttp-0.6.2 → stealthhttp-0.9.1}/vendor/h2/src/hpack/huffman/table.rs +0 -0
  233. {stealthhttp-0.6.2 → stealthhttp-0.9.1}/vendor/h2/src/hpack/mod.rs +0 -0
  234. {stealthhttp-0.6.2 → stealthhttp-0.9.1}/vendor/h2/src/hpack/table.rs +0 -0
  235. {stealthhttp-0.6.2 → stealthhttp-0.9.1}/vendor/h2/src/hpack/test/fixture.rs +0 -0
  236. {stealthhttp-0.6.2 → stealthhttp-0.9.1}/vendor/h2/src/hpack/test/fuzz.rs +0 -0
  237. {stealthhttp-0.6.2 → stealthhttp-0.9.1}/vendor/h2/src/hpack/test/mod.rs +0 -0
  238. {stealthhttp-0.6.2 → stealthhttp-0.9.1}/vendor/h2/src/lib.rs +0 -0
  239. {stealthhttp-0.6.2 → stealthhttp-0.9.1}/vendor/h2/src/proto/connection.rs +0 -0
  240. {stealthhttp-0.6.2 → stealthhttp-0.9.1}/vendor/h2/src/proto/error.rs +0 -0
  241. {stealthhttp-0.6.2 → stealthhttp-0.9.1}/vendor/h2/src/proto/go_away.rs +0 -0
  242. {stealthhttp-0.6.2 → stealthhttp-0.9.1}/vendor/h2/src/proto/mod.rs +0 -0
  243. {stealthhttp-0.6.2 → stealthhttp-0.9.1}/vendor/h2/src/proto/peer.rs +0 -0
  244. {stealthhttp-0.6.2 → stealthhttp-0.9.1}/vendor/h2/src/proto/ping_pong.rs +0 -0
  245. {stealthhttp-0.6.2 → stealthhttp-0.9.1}/vendor/h2/src/proto/settings.rs +0 -0
  246. {stealthhttp-0.6.2 → stealthhttp-0.9.1}/vendor/h2/src/proto/streams/buffer.rs +0 -0
  247. {stealthhttp-0.6.2 → stealthhttp-0.9.1}/vendor/h2/src/proto/streams/counts.rs +0 -0
  248. {stealthhttp-0.6.2 → stealthhttp-0.9.1}/vendor/h2/src/proto/streams/flow_control.rs +0 -0
  249. {stealthhttp-0.6.2 → stealthhttp-0.9.1}/vendor/h2/src/proto/streams/mod.rs +0 -0
  250. {stealthhttp-0.6.2 → stealthhttp-0.9.1}/vendor/h2/src/proto/streams/prioritize.rs +0 -0
  251. {stealthhttp-0.6.2 → stealthhttp-0.9.1}/vendor/h2/src/proto/streams/recv.rs +0 -0
  252. {stealthhttp-0.6.2 → stealthhttp-0.9.1}/vendor/h2/src/proto/streams/send.rs +0 -0
  253. {stealthhttp-0.6.2 → stealthhttp-0.9.1}/vendor/h2/src/proto/streams/state.rs +0 -0
  254. {stealthhttp-0.6.2 → stealthhttp-0.9.1}/vendor/h2/src/proto/streams/store.rs +0 -0
  255. {stealthhttp-0.6.2 → stealthhttp-0.9.1}/vendor/h2/src/proto/streams/stream.rs +0 -0
  256. {stealthhttp-0.6.2 → stealthhttp-0.9.1}/vendor/h2/src/proto/streams/streams.rs +0 -0
  257. {stealthhttp-0.6.2 → stealthhttp-0.9.1}/vendor/h2/src/server.rs +0 -0
  258. {stealthhttp-0.6.2 → stealthhttp-0.9.1}/vendor/h2/src/share.rs +0 -0
  259. {stealthhttp-0.6.2 → stealthhttp-0.9.1}/vendor/hyper/Cargo.toml +0 -0
  260. {stealthhttp-0.6.2 → stealthhttp-0.9.1}/vendor/hyper/LICENSE +0 -0
  261. {stealthhttp-0.6.2 → stealthhttp-0.9.1}/vendor/hyper/README.md +0 -0
  262. {stealthhttp-0.6.2 → stealthhttp-0.9.1}/vendor/hyper/src/body/incoming.rs +0 -0
  263. {stealthhttp-0.6.2 → stealthhttp-0.9.1}/vendor/hyper/src/body/length.rs +0 -0
  264. {stealthhttp-0.6.2 → stealthhttp-0.9.1}/vendor/hyper/src/body/mod.rs +0 -0
  265. {stealthhttp-0.6.2 → stealthhttp-0.9.1}/vendor/hyper/src/cfg.rs +0 -0
  266. {stealthhttp-0.6.2 → stealthhttp-0.9.1}/vendor/hyper/src/client/conn/http1.rs +0 -0
  267. {stealthhttp-0.6.2 → stealthhttp-0.9.1}/vendor/hyper/src/client/conn/http2.rs +0 -0
  268. {stealthhttp-0.6.2 → stealthhttp-0.9.1}/vendor/hyper/src/client/conn/mod.rs +0 -0
  269. {stealthhttp-0.6.2 → stealthhttp-0.9.1}/vendor/hyper/src/client/dispatch.rs +0 -0
  270. {stealthhttp-0.6.2 → stealthhttp-0.9.1}/vendor/hyper/src/client/mod.rs +0 -0
  271. {stealthhttp-0.6.2 → stealthhttp-0.9.1}/vendor/hyper/src/client/tests.rs +0 -0
  272. {stealthhttp-0.6.2 → stealthhttp-0.9.1}/vendor/hyper/src/common/buf.rs +0 -0
  273. {stealthhttp-0.6.2 → stealthhttp-0.9.1}/vendor/hyper/src/common/date.rs +0 -0
  274. {stealthhttp-0.6.2 → stealthhttp-0.9.1}/vendor/hyper/src/common/either.rs +0 -0
  275. {stealthhttp-0.6.2 → stealthhttp-0.9.1}/vendor/hyper/src/common/future.rs +0 -0
  276. {stealthhttp-0.6.2 → stealthhttp-0.9.1}/vendor/hyper/src/common/io/compat.rs +0 -0
  277. {stealthhttp-0.6.2 → stealthhttp-0.9.1}/vendor/hyper/src/common/io/mod.rs +0 -0
  278. {stealthhttp-0.6.2 → stealthhttp-0.9.1}/vendor/hyper/src/common/io/rewind.rs +0 -0
  279. {stealthhttp-0.6.2 → stealthhttp-0.9.1}/vendor/hyper/src/common/lock.rs +0 -0
  280. {stealthhttp-0.6.2 → stealthhttp-0.9.1}/vendor/hyper/src/common/mod.rs +0 -0
  281. {stealthhttp-0.6.2 → stealthhttp-0.9.1}/vendor/hyper/src/common/task.rs +0 -0
  282. {stealthhttp-0.6.2 → stealthhttp-0.9.1}/vendor/hyper/src/common/time.rs +0 -0
  283. {stealthhttp-0.6.2 → stealthhttp-0.9.1}/vendor/hyper/src/common/watch.rs +0 -0
  284. {stealthhttp-0.6.2 → stealthhttp-0.9.1}/vendor/hyper/src/error.rs +0 -0
  285. {stealthhttp-0.6.2 → stealthhttp-0.9.1}/vendor/hyper/src/ext/h1_reason_phrase.rs +0 -0
  286. {stealthhttp-0.6.2 → stealthhttp-0.9.1}/vendor/hyper/src/ext/informational.rs +0 -0
  287. {stealthhttp-0.6.2 → stealthhttp-0.9.1}/vendor/hyper/src/ext/mod.rs +0 -0
  288. {stealthhttp-0.6.2 → stealthhttp-0.9.1}/vendor/hyper/src/ffi/body.rs +0 -0
  289. {stealthhttp-0.6.2 → stealthhttp-0.9.1}/vendor/hyper/src/ffi/client.rs +0 -0
  290. {stealthhttp-0.6.2 → stealthhttp-0.9.1}/vendor/hyper/src/ffi/error.rs +0 -0
  291. {stealthhttp-0.6.2 → stealthhttp-0.9.1}/vendor/hyper/src/ffi/http_types.rs +0 -0
  292. {stealthhttp-0.6.2 → stealthhttp-0.9.1}/vendor/hyper/src/ffi/io.rs +0 -0
  293. {stealthhttp-0.6.2 → stealthhttp-0.9.1}/vendor/hyper/src/ffi/macros.rs +0 -0
  294. {stealthhttp-0.6.2 → stealthhttp-0.9.1}/vendor/hyper/src/ffi/mod.rs +0 -0
  295. {stealthhttp-0.6.2 → stealthhttp-0.9.1}/vendor/hyper/src/ffi/task.rs +0 -0
  296. {stealthhttp-0.6.2 → stealthhttp-0.9.1}/vendor/hyper/src/headers.rs +0 -0
  297. {stealthhttp-0.6.2 → stealthhttp-0.9.1}/vendor/hyper/src/lib.rs +0 -0
  298. {stealthhttp-0.6.2 → stealthhttp-0.9.1}/vendor/hyper/src/mock.rs +0 -0
  299. {stealthhttp-0.6.2 → stealthhttp-0.9.1}/vendor/hyper/src/proto/h1/conn.rs +0 -0
  300. {stealthhttp-0.6.2 → stealthhttp-0.9.1}/vendor/hyper/src/proto/h1/decode.rs +0 -0
  301. {stealthhttp-0.6.2 → stealthhttp-0.9.1}/vendor/hyper/src/proto/h1/dispatch.rs +0 -0
  302. {stealthhttp-0.6.2 → stealthhttp-0.9.1}/vendor/hyper/src/proto/h1/encode.rs +0 -0
  303. {stealthhttp-0.6.2 → stealthhttp-0.9.1}/vendor/hyper/src/proto/h1/io.rs +0 -0
  304. {stealthhttp-0.6.2 → stealthhttp-0.9.1}/vendor/hyper/src/proto/h1/mod.rs +0 -0
  305. {stealthhttp-0.6.2 → stealthhttp-0.9.1}/vendor/hyper/src/proto/h1/role.rs +0 -0
  306. {stealthhttp-0.6.2 → stealthhttp-0.9.1}/vendor/hyper/src/proto/h2/client.rs +0 -0
  307. {stealthhttp-0.6.2 → stealthhttp-0.9.1}/vendor/hyper/src/proto/h2/mod.rs +0 -0
  308. {stealthhttp-0.6.2 → stealthhttp-0.9.1}/vendor/hyper/src/proto/h2/ping.rs +0 -0
  309. {stealthhttp-0.6.2 → stealthhttp-0.9.1}/vendor/hyper/src/proto/h2/server.rs +0 -0
  310. {stealthhttp-0.6.2 → stealthhttp-0.9.1}/vendor/hyper/src/proto/h2/upgrade.rs +0 -0
  311. {stealthhttp-0.6.2 → stealthhttp-0.9.1}/vendor/hyper/src/proto/mod.rs +0 -0
  312. {stealthhttp-0.6.2 → stealthhttp-0.9.1}/vendor/hyper/src/rt/bounds.rs +0 -0
  313. {stealthhttp-0.6.2 → stealthhttp-0.9.1}/vendor/hyper/src/rt/io.rs +0 -0
  314. {stealthhttp-0.6.2 → stealthhttp-0.9.1}/vendor/hyper/src/rt/mod.rs +0 -0
  315. {stealthhttp-0.6.2 → stealthhttp-0.9.1}/vendor/hyper/src/rt/timer.rs +0 -0
  316. {stealthhttp-0.6.2 → stealthhttp-0.9.1}/vendor/hyper/src/server/conn/http1.rs +0 -0
  317. {stealthhttp-0.6.2 → stealthhttp-0.9.1}/vendor/hyper/src/server/conn/http2.rs +0 -0
  318. {stealthhttp-0.6.2 → stealthhttp-0.9.1}/vendor/hyper/src/server/conn/mod.rs +0 -0
  319. {stealthhttp-0.6.2 → stealthhttp-0.9.1}/vendor/hyper/src/server/mod.rs +0 -0
  320. {stealthhttp-0.6.2 → stealthhttp-0.9.1}/vendor/hyper/src/service/http.rs +0 -0
  321. {stealthhttp-0.6.2 → stealthhttp-0.9.1}/vendor/hyper/src/service/mod.rs +0 -0
  322. {stealthhttp-0.6.2 → stealthhttp-0.9.1}/vendor/hyper/src/service/service.rs +0 -0
  323. {stealthhttp-0.6.2 → stealthhttp-0.9.1}/vendor/hyper/src/service/util.rs +0 -0
  324. {stealthhttp-0.6.2 → stealthhttp-0.9.1}/vendor/hyper/src/trace.rs +0 -0
  325. {stealthhttp-0.6.2 → stealthhttp-0.9.1}/vendor/hyper/src/upgrade.rs +0 -0
@@ -120,9 +120,9 @@ checksum = "fc652a48c352aef3ea3aed32080501cf3ef6ed5da78602a020c991775b0aff04"
120
120
 
121
121
  [[package]]
122
122
  name = "cc"
123
- version = "1.4.2"
123
+ version = "1.4.4"
124
124
  source = "registry+https://github.com/rust-lang/crates.io-index"
125
- checksum = "5d262e149917187838d5b42777c8253bcb64500067342904e7d429499a6f277e"
125
+ checksum = "0ad534f4357a5264cce5019c989cf66a4f0dc4e0d1b1d15f8aacec0ff7360273"
126
126
  dependencies = [
127
127
  "find-msvc-tools",
128
128
  "jobserver",
@@ -231,9 +231,9 @@ dependencies = [
231
231
 
232
232
  [[package]]
233
233
  name = "either"
234
- version = "1.17.0"
234
+ version = "1.18.0"
235
235
  source = "registry+https://github.com/rust-lang/crates.io-index"
236
- checksum = "9e5e8f6c15a24b9a3ee5efec809ccd006d3b30e8b3bb63c39af737c7f87daa1d"
236
+ checksum = "252afb9ae5eaa683babdc6a068b3f5726eb19e05070c731f9b2a23a7c3e8ed34"
237
237
 
238
238
  [[package]]
239
239
  name = "equivalent"
@@ -243,9 +243,9 @@ checksum = "877a4ace8713b0bcf2a4e7eec82529c029f1d0619886d18145fea96c3ffe5c0f"
243
243
 
244
244
  [[package]]
245
245
  name = "find-msvc-tools"
246
- version = "0.1.10"
246
+ version = "0.1.11"
247
247
  source = "registry+https://github.com/rust-lang/crates.io-index"
248
- checksum = "26b73573e6edcd2af0cdf47bd6cb58f0b3839491263c314eaad1ccf24430e1de"
248
+ checksum = "d45db016d36b838f563236e9193d0ee6ce38f3f68b6c94e914b4929c96bbb890"
249
249
 
250
250
  [[package]]
251
251
  name = "flate2"
@@ -632,9 +632,9 @@ checksum = "a89322df9ebe1c1578d689c92318e070967d1042b512afbe49518723f4e6d5cd"
632
632
 
633
633
  [[package]]
634
634
  name = "pkg-config"
635
- version = "0.3.33"
635
+ version = "0.3.34"
636
636
  source = "registry+https://github.com/rust-lang/crates.io-index"
637
- checksum = "19f132c84eca552bf34cab8ec81f1c1dcc229b811638f9d283dceabe58c5569e"
637
+ checksum = "f6b464fbc74e149a392436b17d523f769e057cb6877f6a5c4618bc6f11800548"
638
638
 
639
639
  [[package]]
640
640
  name = "portable-atomic"
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: stealthhttp
3
- Version: 0.6.2
3
+ Version: 0.9.1
4
4
  Classifier: Development Status :: 3 - Alpha
5
5
  Classifier: Intended Audience :: Developers
6
6
  Classifier: License :: OSI Approved :: MIT License
@@ -9,12 +9,15 @@ Classifier: Programming Language :: Rust
9
9
  Classifier: Topic :: Internet :: WWW/HTTP
10
10
  Requires-Dist: wreq>=2.0 ; extra == 'all'
11
11
  Requires-Dist: curl-cffi>=0.7 ; extra == 'all'
12
+ Requires-Dist: certifi ; extra == 'all'
13
+ Requires-Dist: certifi ; extra == 'certs'
12
14
  Requires-Dist: curl-cffi>=0.7 ; extra == 'curl'
13
15
  Requires-Dist: pytest>=7.0 ; extra == 'dev'
14
16
  Requires-Dist: pytest-asyncio>=0.23 ; extra == 'dev'
15
17
  Requires-Dist: maturin>=1.5 ; extra == 'dev'
16
18
  Requires-Dist: wreq>=2.0 ; extra == 'wreq'
17
19
  Provides-Extra: all
20
+ Provides-Extra: certs
18
21
  Provides-Extra: curl
19
22
  Provides-Extra: dev
20
23
  Provides-Extra: wreq
@@ -7,7 +7,7 @@ build-backend = "maturin"
7
7
 
8
8
  [project]
9
9
  name = "stealthhttp"
10
- version = "0.6.2"
10
+ version = "0.9.1"
11
11
  description = "HTTP with TLS fingerprint impersonation, rotation and proxy health tracking"
12
12
  readme = "README.md"
13
13
  requires-python = ">=3.9"
@@ -27,7 +27,8 @@ dependencies = []
27
27
  # At least one transport backend is required at runtime.
28
28
  wreq = ["wreq>=2.0"]
29
29
  curl = ["curl_cffi>=0.7"]
30
- all = ["wreq>=2.0", "curl_cffi>=0.7"]
30
+ certs = ["certifi"]
31
+ all = ["wreq>=2.0", "curl_cffi>=0.7", "certifi"]
31
32
  dev = ["pytest>=7.0", "pytest-asyncio>=0.23", "maturin>=1.5"]
32
33
 
33
34
  [tool.maturin]
@@ -2,7 +2,7 @@
2
2
 
3
3
  from stealthhttp import Session
4
4
 
5
- s = Session(browser="chrome138", proxy="http://user:pass@ip:port")
5
+ s = Session(browser="chrome151", proxy="http://user:pass@ip:port")
6
6
  r = s.get("https://example.com", timeout=15)
7
7
  print(r.status_code, r.text)
8
8
 
@@ -116,7 +116,13 @@ from .response_decoder import ContentDecoder, CharsetDetector, EncodingNegotiato
116
116
  from .fingerprint_diff import FingerprintDiff, format_diff, similarity_score
117
117
  from .cdp_transport import CdpSession
118
118
  from .cdp_solver import StealthBrowser, find_chrome, solve_challenge as cdp_solve
119
- from .auto_bypass import AutoSession, BypassLearner, StrategyRecord, STRATEGIES
119
+ try:
120
+ from .auto_bypass import AutoSession, BypassLearner, StrategyRecord, STRATEGIES
121
+ except ImportError:
122
+ AutoSession = None # type: ignore[assignment,misc]
123
+ BypassLearner = None # type: ignore[assignment,misc]
124
+ StrategyRecord = None # type: ignore[assignment,misc]
125
+ STRATEGIES = {} # type: ignore[assignment]
120
126
  from .site_recipes import SiteRecipe, get_recipe, apply_recipe, RECIPES
121
127
  from .forms import Form, FormField, FormExtractor, fill_form, submit_form
122
128
  from .graphql import GraphQLClient, GraphQLResponse, GraphQLError
@@ -154,8 +160,9 @@ from .dns_tunnel import DNSTunnel, DoHRelay, EDNSClientSubnet, DNSCache, DNSReco
154
160
  from .replay_attack import ReplayAttackDetector, RequestMutator, ReplayProtection, detect_replay_protection, mutate_request
155
161
  from .browser_fsm import BrowserStateMachine, NavigationFSM, BrowserState, StateTransition
156
162
  from .quic_fingerprint import QUICProfile, AltSvcTracker, QUICFingerprint, H3Negotiator, quic_fingerprint, parse_alt_svc, should_use_h3
163
+ from .auto_update import latest_chrome, auto_update, latest_profile, check_outdated
157
164
 
158
- __version__ = "0.6.2"
165
+ __version__ = "0.9.1"
159
166
 
160
167
  __all__ = [
161
168
  "Session", "Response", "ProxyPool", "CookieJar", "Cookie",
@@ -266,12 +273,50 @@ __all__ = [
266
273
  # v0.6.0: QUIC fingerprint intelligence
267
274
  "QUICProfile", "AltSvcTracker", "QUICFingerprint", "H3Negotiator",
268
275
  "quic_fingerprint", "parse_alt_svc", "should_use_h3",
276
+ # v0.9.0: auto-update
277
+ "latest_chrome", "auto_update", "latest_profile", "check_outdated",
269
278
  # module-level verbs
270
279
  "request", "get", "post", "put", "patch", "delete", "head", "options",
280
+ "quick_get", "quick_post",
271
281
  ]
272
282
 
283
+ import threading as _threading
284
+ _quick_lock = _threading.Lock()
285
+ _quick_sessions: dict[str, Session] = {}
273
286
 
274
- def request(method: str, url: str, *, browser: str = "chrome138", **kw: Any) -> Response:
287
+
288
+ def _quick_session(proxy: str | None = None, browser: str = "chrome151",
289
+ verify: bool = True) -> Session:
290
+ key = f"{browser}|{proxy or ''}|{verify}"
291
+ s = _quick_sessions.get(key)
292
+ if s is not None and not s._closed:
293
+ return s
294
+ with _quick_lock:
295
+ s = _quick_sessions.get(key)
296
+ if s is not None and not s._closed:
297
+ return s
298
+ s = Session(browser=browser, proxy=proxy, verify=verify,
299
+ auto_bypass=False, detect_bans=False,
300
+ cache=False, referer_chain=False)
301
+ _quick_sessions[key] = s
302
+ return s
303
+
304
+
305
+ def quick_get(url: str, *, proxy: str | None = None,
306
+ browser: str = "chrome151", verify: bool = True,
307
+ timeout: float = 15, **kw: Any) -> Response:
308
+ """Lightweight GET — reuses a shared session, skips bypass/cache/ban detection."""
309
+ return _quick_session(proxy, browser, verify).get(url, timeout=timeout, **kw)
310
+
311
+
312
+ def quick_post(url: str, *, proxy: str | None = None,
313
+ browser: str = "chrome151", verify: bool = True,
314
+ timeout: float = 15, **kw: Any) -> Response:
315
+ """Lightweight POST — reuses a shared session, skips bypass/cache/ban detection."""
316
+ return _quick_session(proxy, browser, verify).post(url, timeout=timeout, **kw)
317
+
318
+
319
+ def request(method: str, url: str, *, browser: str = "chrome151", **kw: Any) -> Response:
275
320
  """One-shot request. Prefer a :class:`Session` for anything repeated —
276
321
  it reuses connections and keeps cookies."""
277
322
  session_keys = (
@@ -165,19 +165,18 @@ def _h2_priority(family: str) -> tuple[int, int, bool]:
165
165
  # --------------------------------------------------------------------------
166
166
 
167
167
  _GREASE_CHARS = [" ", "(", ")", "-", ".", "/", ":", ";", "=", "?", "_"]
168
- _GREASE_VERSIONS = ["8", "99", "24"]
169
168
  _BRAND_ORDERS = [[0, 1, 2], [0, 2, 1], [1, 0, 2], [1, 2, 0], [2, 0, 1], [2, 1, 0]]
170
169
 
171
170
  _BRAND_NAME = {"edge": "Microsoft Edge", "opera": "Opera", "chrome": "Google Chrome"}
172
171
 
173
172
 
174
173
  def sec_ch_ua(family: str, major: int) -> str | None:
175
- """Reproduce Chromium's sec-ch-ua brand list."""
174
+ """Reproduce Chromium's sec-ch-ua brand list (matches user_agent_utils.cc)."""
176
175
  if family not in _CHROMIUM:
177
176
  return None
178
177
  i = major % 11
179
178
  greasey = f"Not{_GREASE_CHARS[i]}A{_GREASE_CHARS[(i + 1) % 11]}Brand"
180
- greasey_version = _GREASE_VERSIONS[major % 3]
179
+ greasey_version = str(major % 16)
181
180
  brand = _BRAND_NAME.get(family, "Google Chrome")
182
181
 
183
182
  order = _BRAND_ORDERS[major % 6]
@@ -8,7 +8,6 @@ from pathlib import Path
8
8
  from typing import Any
9
9
  from urllib.parse import urlsplit
10
10
 
11
- from .cdp_solver import StealthBrowser, find_chrome
12
11
  from .proxy import detect_ban
13
12
  from .response import Response
14
13
  from .session import Session
@@ -17,18 +16,28 @@ log = logging.getLogger(__name__)
17
16
  _BLOCK_STATUSES = frozenset({403, 429, 503})
18
17
 
19
18
  STRATEGIES = (
20
- "header_variation", "cookie_replay", "browser_switch",
21
- "proxy_rotate", "delay_long", "cdp_solve", "useragent_downgrade",
19
+ "warm_visit", "header_variation", "sensor_submit", "captcha_solve",
20
+ "browser_switch", "proxy_rotate", "delay_long", "useragent_downgrade",
22
21
  )
23
22
 
23
+ _WARM_PATHS: dict[str, list[str]] = {
24
+ "ebay.com": ["/deals", "/sch/i.html?_nkw=test"],
25
+ "ebay.de": ["/deals"],
26
+ "ebay.co.uk": ["/deals"],
27
+ "ebay.fr": ["/deals"],
28
+ "reddit.com": ["/r/all/.rss", "/.well-known/security.txt"],
29
+ "www.reddit.com": ["/r/all/.rss", "/.well-known/security.txt"],
30
+ }
31
+
24
32
  _WAF_PRIORS: dict[str, tuple[str, ...]] = {
25
- "cloudflare": ("browser_switch", "cdp_solve", "delay_long", "header_variation"),
26
- "akamai": ("header_variation", "cookie_replay", "browser_switch", "cdp_solve"),
27
- "datadome": ("cdp_solve", "header_variation", "cookie_replay", "proxy_rotate"),
28
- "perimeterx": ("cdp_solve", "cookie_replay", "browser_switch", "header_variation"),
29
- "imperva": ("header_variation", "browser_switch", "proxy_rotate", "cdp_solve"),
30
- "kasada": ("cdp_solve", "browser_switch", "proxy_rotate", "delay_long"),
31
- "shape": ("browser_switch", "header_variation", "cdp_solve", "proxy_rotate"),
33
+ "cloudflare": ("warm_visit", "sensor_submit", "captcha_solve", "browser_switch", "header_variation", "delay_long"),
34
+ "akamai": ("warm_visit", "sensor_submit", "header_variation", "browser_switch"),
35
+ "datadome": ("sensor_submit", "captcha_solve", "warm_visit", "header_variation", "proxy_rotate"),
36
+ "perimeterx": ("sensor_submit", "captcha_solve", "warm_visit", "browser_switch", "header_variation"),
37
+ "imperva": ("header_variation", "warm_visit", "browser_switch", "proxy_rotate"),
38
+ "kasada": ("sensor_submit", "warm_visit", "browser_switch", "proxy_rotate"),
39
+ "shape": ("warm_visit", "browser_switch", "header_variation", "sensor_submit"),
40
+ "reddit": ("warm_visit", "header_variation", "browser_switch", "delay_long"),
32
41
  }
33
42
 
34
43
 
@@ -209,6 +218,7 @@ class BypassLearner:
209
218
  ("imperva", "incapsula" in srv or b"reese84" in body[:8192]),
210
219
  ("kasada", b"ips.js" in b4k or b"kpsdk" in b4k),
211
220
  ("shape", b"boa.js" in b4k or "shape" in srv),
221
+ ("reddit", "snooserv" in srv),
212
222
  ("ratelimit", status == 429),
213
223
  ]
214
224
  return next((n for n, c in checks if c), None)
@@ -226,6 +236,8 @@ class AutoSession(Session):
226
236
  max_retries: int = 3,
227
237
  learner: BypassLearner | None = None,
228
238
  learner_db: str | Path | None = None,
239
+ solver_key: str | None = None,
240
+ solver_provider: str | None = None,
229
241
  **kwargs: Any,
230
242
  ) -> None:
231
243
  kwargs.setdefault("auto_bypass", True)
@@ -238,6 +250,7 @@ class AutoSession(Session):
238
250
  self._learner = BypassLearner(db_path=learner_db)
239
251
  else:
240
252
  self._learner = BypassLearner()
253
+ self._init_solver(solver_key, solver_provider)
241
254
 
242
255
  @property
243
256
  def learner(self) -> BypassLearner:
@@ -330,15 +343,12 @@ class AutoSession(Session):
330
343
  return r.response if r.success and r.response else None
331
344
 
332
345
  def _strat_cookie_replay(self, _resp, method, url, _bkw, kw) -> Response | None:
333
- if not find_chrome(): return None
334
- cookies = self._try_cdp_solve(url)
335
- if not cookies: return None
336
- return self._bypass_request(method, url, **{**kw, "cookies": {**(kw.get("cookies") or {}), **cookies}})
346
+ return None
337
347
 
338
348
  def _strat_browser_switch(self, resp, method, url, bkw, kw) -> Response | None:
339
349
  cur = kw.get("browser") or self._browsers[0]
340
350
  if len(self._browsers) < 2:
341
- alt = "firefox128" if "chrome" in cur else "chrome138"
351
+ alt = "firefox128" if "chrome" in cur else "chrome151"
342
352
  else:
343
353
  alt = next((b for b in self._browsers if b != cur), cur)
344
354
  p = self.profile(alt)
@@ -356,16 +366,88 @@ class AutoSession(Session):
356
366
  time.sleep(random.uniform(30.0, 60.0))
357
367
  return self._bypass_request(method, url, **kw)
358
368
 
359
- def _strat_cdp_solve(self, _resp, method, url, _bkw, kw) -> Response | None:
360
- if not find_chrome(): return None
361
- fetch = self._try_cdp_fetch(url, method, **kw)
362
- if fetch is not None and not self._is_blocked(fetch): return fetch
363
- cookies = self._try_cdp_solve(url)
364
- if cookies:
365
- r = self._bypass_request(method, url, **{**kw, "cookies": {**(kw.get("cookies") or {}), **cookies}})
366
- if not self._is_blocked(r): return r
367
- return r
368
- return fetch
369
+ def _strat_warm_visit(self, _resp, method, url, _bkw, kw) -> Response | None:
370
+ host = urlsplit(url).hostname or ""
371
+ domain = host.lstrip("www.")
372
+ paths = _WARM_PATHS.get(domain, [])
373
+ if not paths:
374
+ paths = ["/robots.txt", "/favicon.ico", "/sitemap.xml"]
375
+ origin = f"{urlsplit(url).scheme}://{urlsplit(url).netloc}"
376
+ for path in paths:
377
+ warm_url = f"{origin}{path}" if path.startswith("/") else path
378
+ try:
379
+ wr = self._bypass_request("GET", warm_url, timeout=15)
380
+ if wr.status_code < 400:
381
+ time.sleep(random.uniform(0.5, 1.5))
382
+ r = self._bypass_request(method, url, **kw)
383
+ if not self._is_blocked(r):
384
+ return r
385
+ except Exception:
386
+ continue
387
+ return None
388
+
389
+ def _strat_sensor_submit(self, resp, method, url, _bkw, kw) -> Response | None:
390
+ r = self.bypass.attempt(self._bypass_request, url, resp, self.jsenv,
391
+ user_agent=self.profile(kw.get("browser") or self._browsers[0]).user_agent,
392
+ **{k: v for k, v in kw.items()
393
+ if k in ("headers", "timeout", "kind", "verify", "resolve", "browser")})
394
+ return r.response if r.success and r.response else None
395
+
396
+ def _init_solver(self, key: str | None, provider: str | None) -> None:
397
+ import os
398
+ if key or provider:
399
+ self._attach_solver(key or "", provider or "capsolver")
400
+ return
401
+ for env, prov in (("CAPSOLVER_API_KEY", "capsolver"),
402
+ ("ANTICAPTCHA_API_KEY", "anti-captcha"),
403
+ ("TWOCAPTCHA_API_KEY", "2captcha")):
404
+ k = os.environ.get(env)
405
+ if k:
406
+ self._attach_solver(k, prov)
407
+ return
408
+
409
+ def _attach_solver(self, key: str, provider: str) -> None:
410
+ try:
411
+ from .solving.providers import (
412
+ CapsolverProvider, AntiCaptchaProvider, TwoCaptchaProvider)
413
+ from .bypasses.solver import CaptchaSolver
414
+ providers = {"capsolver": CapsolverProvider,
415
+ "anti-captcha": AntiCaptchaProvider,
416
+ "2captcha": TwoCaptchaProvider}
417
+ cls = providers.get(provider)
418
+ if not cls:
419
+ return
420
+ prov = cls(api_key=key, session=self)
421
+ def _solve_cb(ch):
422
+ from .captcha import Vendor
423
+ vendor_map = {"turnstile": Vendor.TURNSTILE,
424
+ "hcaptcha": Vendor.HCAPTCHA,
425
+ "recaptcha": Vendor.RECAPTCHA_V2,
426
+ "datadome": Vendor.HCAPTCHA}
427
+ v = vendor_map.get(ch.captcha_type)
428
+ if not v or v not in prov.capabilities():
429
+ return None
430
+ from .solving.base import Task
431
+ task = Task(vendor=v, website_url=ch.page_url,
432
+ website_key=ch.sitekey or None,
433
+ action=ch.action or None)
434
+ result = prov.solve(task)
435
+ return result.token if result else None
436
+ solver = CaptchaSolver(callback=_solve_cb)
437
+ self.bypass.solver = solver
438
+ except Exception:
439
+ log.debug("solver init failed for %s", provider, exc_info=True)
440
+
441
+ def _strat_captcha_solve(self, resp, method, url, _bkw, kw) -> Response | None:
442
+ solver = getattr(self.bypass, "solver", None)
443
+ if solver is None or not solver.can_solve():
444
+ return None
445
+ ok, final, detail = solver.attempt_with_solver(
446
+ self._bypass_request, url, resp, self.jsenv,
447
+ vendor=self.bypass.detect_vendor(
448
+ resp.status_code, resp.headers, resp.content,
449
+ cookies=getattr(resp, "cookies", None)) or "")
450
+ return final if ok else None
369
451
 
370
452
  def _strat_useragent_downgrade(self, _resp, method, url, _bkw, kw) -> Response | None:
371
453
  ua = self.profile(kw.get("browser") or self._browsers[0]).user_agent
@@ -374,23 +456,6 @@ class AutoSession(Session):
374
456
  hdrs = {**(kw.get("headers") or {}), "user-agent": ua}
375
457
  return self._bypass_request(method, url, **{**kw, "headers": hdrs})
376
458
 
377
- def _try_cdp_solve(self, url: str) -> dict[str, str]:
378
- if not find_chrome():
379
- return {}
380
- host = urlsplit(url).hostname or ""
381
- try:
382
- proxy = self.proxies.acquire(host)
383
- except Exception:
384
- proxy = None
385
- try:
386
- with StealthBrowser(
387
- profile=self._browsers[0], proxy=proxy,
388
- ) as browser:
389
- return browser.solve(url)
390
- except Exception:
391
- log.debug("CDP solve failed for %s", url, exc_info=True)
392
- return {}
393
-
394
459
  def _try_replay_bypass(self, method: str, url: str,
395
460
  resp: Response, **kwargs) -> Response | None:
396
461
  try:
@@ -417,28 +482,3 @@ class AutoSession(Session):
417
482
  return retry_resp
418
483
  return None
419
484
 
420
- def _try_cdp_fetch(self, url: str, method: str, **kwargs) -> Response | None:
421
- if not find_chrome():
422
- return None
423
- host = urlsplit(url).hostname or ""
424
- try:
425
- proxy = self.proxies.acquire(host)
426
- except Exception:
427
- proxy = None
428
- try:
429
- with StealthBrowser(profile=self._browsers[0], proxy=proxy) as browser:
430
- result = browser.solve_and_fetch(
431
- url, method=method, headers=kwargs.get("headers"),
432
- )
433
- if not result or "s" not in result:
434
- return None
435
- return Response(
436
- url=result.get("u", url),
437
- status_code=result["s"],
438
- content=result.get("b", "").encode("utf-8", "replace"),
439
- headers=result.get("h", {}),
440
- cookies=result.get("cookies", {}),
441
- )
442
- except Exception:
443
- log.debug("CDP fetch failed for %s", url, exc_info=True)
444
- return None
@@ -13,31 +13,31 @@ from typing import Dict, List, Optional, Tuple
13
13
  # ---------------------------------------------------------------------------
14
14
 
15
15
  WAF_PREFERENCES: Dict[str, List[str]] = {
16
- "cloudflare": ["chrome141", "chrome140"],
17
- "akamai": ["chrome141", "edge141"],
18
- "datadome": ["chrome141", "firefox145"],
19
- "perimeterx": ["chrome140", "safari18_5"],
20
- "imperva": ["chrome141", "firefox144"],
21
- "kasada": ["chrome141"],
22
- "shape": ["chrome141", "edge141"],
16
+ "cloudflare": ["chrome151", "chrome150"],
17
+ "akamai": ["chrome151", "edge151"],
18
+ "datadome": ["chrome151", "firefox148"],
19
+ "perimeterx": ["chrome150", "safari18_5"],
20
+ "imperva": ["chrome151", "firefox147"],
21
+ "kasada": ["chrome151"],
22
+ "shape": ["chrome151", "edge151"],
23
23
  }
24
24
 
25
25
  COUNTRY_PREFERENCES: Dict[str, List[str]] = {
26
- "US": ["chrome141", "edge141", "safari18_5"],
27
- "JP": ["chrome141", "safari18_5"],
28
- "DE": ["firefox145", "chrome141"],
29
- "CN": ["chrome140", "edge141"],
30
- "RU": ["chrome141", "firefox145"],
31
- "BR": ["chrome141", "chrome140"],
32
- "KR": ["chrome141", "edge141"],
26
+ "US": ["chrome151", "edge151", "safari18_5"],
27
+ "JP": ["chrome151", "safari18_5"],
28
+ "DE": ["firefox148", "chrome151"],
29
+ "CN": ["chrome150", "edge151"],
30
+ "RU": ["chrome151", "firefox148"],
31
+ "BR": ["chrome151", "chrome150"],
32
+ "KR": ["chrome151", "edge151"],
33
33
  }
34
34
 
35
35
  _DEFAULT_PROFILES: List[str] = [
36
- "chrome141",
37
- "chrome140",
38
- "firefox145",
39
- "firefox144",
40
- "edge141",
36
+ "chrome151",
37
+ "chrome150",
38
+ "firefox148",
39
+ "firefox147",
40
+ "edge151",
41
41
  "safari18_5",
42
42
  ]
43
43
 
@@ -0,0 +1,118 @@
1
+ """Browser profile auto-update.
2
+
3
+ Fetches the latest stable Chrome version from Google's version API and
4
+ updates the module-level default so stealthhttp always uses the freshest
5
+ fingerprint without manual code changes.
6
+
7
+ from stealthhttp.auto_update import latest_chrome, auto_update
8
+
9
+ print(latest_chrome()) # e.g. 151
10
+ auto_update() # sets DEFAULT_BROWSER = "chrome151"
11
+ """
12
+
13
+ from __future__ import annotations
14
+
15
+ import json
16
+ import os
17
+ import time
18
+ import urllib.request
19
+ from pathlib import Path
20
+ from typing import Optional
21
+
22
+ _CHROME_VERSIONS_URL = (
23
+ "https://versionhistory.googleapis.com/v1/chrome/platforms/win/channels/stable/versions"
24
+ )
25
+ _CHROMIUM_DASH_URL = (
26
+ "https://chromiumdash.appspot.com/fetch/milestones"
27
+ )
28
+
29
+ _CACHE_FILE = Path(__file__).parent / ".latest_chrome"
30
+ _CACHE_TTL = 86400
31
+
32
+
33
+ def _fetch_latest_major() -> int | None:
34
+ """Query Google's version API for the current stable Chrome major."""
35
+ for url in (_CHROME_VERSIONS_URL, _CHROMIUM_DASH_URL):
36
+ try:
37
+ req = urllib.request.Request(url, headers={"Accept": "application/json"})
38
+ with urllib.request.urlopen(req, timeout=10) as resp:
39
+ data = json.loads(resp.read())
40
+ if isinstance(data, dict) and "versions" in data:
41
+ ver = data["versions"][0]["version"]
42
+ return int(ver.split(".")[0])
43
+ if isinstance(data, list) and data:
44
+ milestones = sorted(data, key=lambda m: m.get("milestone", 0), reverse=True)
45
+ return int(milestones[0]["milestone"])
46
+ except Exception:
47
+ continue
48
+ return None
49
+
50
+
51
+ def _read_cache() -> tuple[int | None, float]:
52
+ """Read cached version. Returns (major, timestamp)."""
53
+ try:
54
+ text = _CACHE_FILE.read_text().strip()
55
+ parts = text.split(":")
56
+ return int(parts[0]), float(parts[1])
57
+ except Exception:
58
+ return None, 0.0
59
+
60
+
61
+ def _write_cache(major: int) -> None:
62
+ try:
63
+ _CACHE_FILE.write_text(f"{major}:{time.time():.0f}")
64
+ except Exception:
65
+ pass
66
+
67
+
68
+ def latest_chrome(*, force_refresh: bool = False) -> int:
69
+ """Return the latest stable Chrome major version.
70
+
71
+ Uses a 24h file cache to avoid hitting Google on every import.
72
+ Falls back to the hardcoded default if the network is unavailable.
73
+ """
74
+ cached, ts = _read_cache()
75
+ if not force_refresh and cached and (time.time() - ts) < _CACHE_TTL:
76
+ return cached
77
+
78
+ fetched = _fetch_latest_major()
79
+ if fetched:
80
+ _write_cache(fetched)
81
+ return fetched
82
+
83
+ return cached or 151
84
+
85
+
86
+ def auto_update() -> str:
87
+ """Fetch the latest Chrome version and update DEFAULT_BROWSER globally.
88
+
89
+ Returns the new default browser string (e.g. "chrome152").
90
+ """
91
+ major = latest_chrome(force_refresh=True)
92
+ new_default = f"chrome{major}"
93
+
94
+ from . import session
95
+ session.DEFAULT_BROWSER = new_default
96
+
97
+ return new_default
98
+
99
+
100
+ def latest_profile() -> str:
101
+ """Return the profile string for the latest stable Chrome."""
102
+ return f"chrome{latest_chrome()}"
103
+
104
+
105
+ def check_outdated(current: str) -> Optional[str]:
106
+ """If *current* profile is outdated, return the latest. Otherwise None."""
107
+ try:
108
+ if not current.startswith("chrome"):
109
+ return None
110
+ ver_str = current.replace("chrome", "")
111
+ current_major = int(ver_str)
112
+ except (ValueError, IndexError):
113
+ return None
114
+
115
+ latest = latest_chrome()
116
+ if latest > current_major:
117
+ return f"chrome{latest}"
118
+ return None
@@ -102,7 +102,7 @@ class CurlBackend:
102
102
  resolve: dict | None = None, **_: Any) -> Response:
103
103
  resolve_key = tuple(_resolve_entries(resolve)) if resolve else ()
104
104
  session = self._session(verify, resolve_key)
105
- target = self.resolve(req.profile_name or "chrome138")
105
+ target = self.resolve(req.profile_name or "chrome151")
106
106
 
107
107
  kwargs: dict[str, Any] = {
108
108
  "impersonate": target,