Proxies
https://x.com/LumiTeh / https://www.lumiteh.com/ / https://github.com/LumiTeh-hub
Overview
LumiTeh provides a flexible proxy system, allowing you to manage how your automation traffic is routed across the internet. Whether you need anonymity, geolocation control, or enhanced reliability, LumiTeh makes it easy to incorporate proxies into your workflows.
Configuration Options
With LumiTeh, you can:
Use built-in proxies:
Easily route traffic through our managed residential proxiesBring your own proxies:
Use custom HTTP/HTTPS proxies for more control over network routingCombine multiple proxies:
Set custom routing rules to direct traffic through different proxies based on domain or location
Proxies are configured when creating a session via the API or SDK.
Built-in Proxies
Use LumiTeh’s built-in proxies to route traffic through managed residential proxies. This is the simplest option and requires minimal setup. Setting proxies=True
will attempt to use a US-based proxy. If nearby US proxies are unavailable, traffic may be routed through nearby countries, such as Canada.
from lumiteh_sdk import LumiTehClient
lumiteh = LumiTehClient()
# Start a session with built-in proxies
with lumiteh.Session(proxies=True) as session:
_ = session.observe(url="https://www.lumiteh.io/")
the proxies
parameter can also be customized to use a specific country proxy as follows:
from lumiteh_sdk.types import LumiTehProxy
proxies = LumiTehProxy.from_country("fr")
Custom Proxies
LumiTeh supports custom proxy configurations, enabling you to route traffic through your own HTTP or HTTPS proxies. This is useful for enforcing specific network routing rules, complying with security policies, or optimizing performance with a preferred proxy provider.
from lumiteh_sdk import LumiTehClient
from lumiteh_sdk.types import ExternalProxy
lumiteh = LumiTehClient()
# Configure custom proxy settings
proxy_settings = ExternalProxy(
server="http://your-proxy-server:port",
username="your-username",
password="your-password",
)
# Start a session with custom proxy
with lumiteh.Session(proxies=[proxy_settings]) as session:
# use your session
pass
Usage Measurement
Proxy usage is measured by the total data transferred through the proxy. This includes:
Webpage content, downloads, and media files
HTTP headers, authentication data, and encryption overhead
Any requests and responses routed through the proxy
Since all traffic passes through the proxy server before reaching its final destination, every interaction contributes to your total bandwidth usage.
Last updated