Python Requests

Python Requests proxy setup

Official website

About this tool

Requests is the standard synchronous HTTP client library for Python, built atop `urllib3` to provide persistent sessions and connection pooling. Requests is a Python library for making HTTP requests with sessions, cookies, authentication, and connection pooling. HTTP(S) proxies can be supplied in request or session settings; SOCKS connections require the optional SOCKS dependencies. It fits API clients and data tasks that do not need browser rendering.

Key capabilities

Session persistence & connection pooling: Uses `requests.Session()` to persist cookies, headers, and authentication across requests while automatically reusing underlying TCP/TLS connections via HTTP keep-alive.

  • Sessions and cookie persistence:Requests handles HTTP parameters, headers, forms, JSON, uploads, authentication and responses. Session objects preserve cookies and pooled connections across requests, supporting clients that need login state or repeated access to the same service.
  • Connection pooling:It processes HTTP responses without executing page JavaScript. APIs and directly returned HTML are suitable inputs; content generated through browser scripts requires an additional rendering approach. This distinction helps determine whether a lightweight HTTP workflow is sufficient.

Where it fits

API clients, scheduled downloads and connectivity checks should set timeouts and handle status codes, authentication and exceptions. Configure proxies per request or session; SOCKS requires optional dependencies. Distinguish a successful proxy connection from a successful response by the destination service.

  • API integrations & lightweight HTML scraping: Ideal for high-throughput REST API clients, webhook consumers, file downloads, and server-rendered HTML extraction paired with parsers like BeautifulSoup or lxml (without browser JS overhead).
  • Accepts HTTP/HTTPS proxy URLs per request or via `Session.proxies`, and supports SOCKS5 proxies when `requests[socks]` is installed; Datacenter proxies are recommended for low-latency, high-concurrency HTTP workloads.
Product information source

Set up your connection

  1. 01

    Get your proxy details

    Copy the host, port, username, and password from your MantaProxy dashboard. Use the actual details of your purchased proxy.

  2. 02

    Configure your environment

    Choose the supported proxy protocol and enter your credentials in the tool, browser, device, or client that handles its network connection.

  3. 03

    Verify the connection

    Check the exit IP and location, then save your configuration. If it fails, verify credentials, protocol support, and any required dependencies.

Connect Python Requests with MantaProxy

Bring the right proxy connection to your next workflow. Start in your dashboard or explore the available plans.