mirror of
https://github.com/etienne-hd/lbc.git
synced 2026-01-21 00:03:17 +01:00
29 lines
442 B
Python
29 lines
442 B
Python
import lbc
|
|
|
|
def main() -> None:
|
|
# Setup proxy1
|
|
proxy1 = lbc.Proxy(
|
|
host="127.0.0.1",
|
|
port=12345,
|
|
username="username",
|
|
password="password",
|
|
scheme="http"
|
|
)
|
|
|
|
# Initialize client with proxy1
|
|
client = lbc.Client(proxy=proxy1)
|
|
|
|
# Setup proxy2
|
|
proxy2 = lbc.Proxy(
|
|
host="127.0.0.1",
|
|
port=23456,
|
|
)
|
|
|
|
# Change client proxy to proxy2
|
|
client.proxy = proxy2
|
|
|
|
# Remove proxy
|
|
client.proxy = None
|
|
|
|
if __name__ == "__main__":
|
|
main() |