🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
DemoInstallSign in
Socket

http-impersonate

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

http-impersonate

HTTPX with custom Client and AsyncClient that include randomized headers and SSL context.

0.1.0
PyPI
Maintainers
1

Python >= 3.8

Httpx impersonate

HTTPX with custom Client and AsyncClient that include randomized headers and SSL context.

Table of Contents

  • Install
  • Features
  • Usage

Install

pip install -U httpx_impersonate

Features

  • Randomized Headers: headers that mimic popular web browsers and operating systems.
  • Randomized SSL Context: randomized ciphers for SSL connections.

Usage

import httpx_impersonate

with httpx_impersonate.Client() as client:
    r = client.get("https://httpbin.org/anything")
    print(r)

async

import asyncio
import httpx_impersonate

async def get_url():
    async with httpx_impersonate.AsyncClient() as client:
        r = await client.get("https://httpbin.org/anything")
        print(r.json())

asyncio.run(get_url())

Keywords

python

FAQs

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts