From f907016fe6a4218be853b46535195f7508d48e15 Mon Sep 17 00:00:00 2001 From: Deepak Soni Date: Wed, 28 Feb 2024 12:47:56 +0530 Subject: [PATCH] Update README.md --- README.md | 18 ++++++++++++++++-- 1 file changed, 16 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 2c98d77..8bf954d 100644 --- a/README.md +++ b/README.md @@ -53,14 +53,28 @@ Tap on the headings to view code:
-Proxy Support
+Using Proxies
+ +When you should use a proxy: +- You're being rate limited when using the **Guest Class**. +- Ensta is not working because your Home IP is flagged. +- You're deploying Ensta to the cloud. (Instagram blocks requests from IPs of cloud providers, so a proxy must be used) ```python from ensta import Host -host = Host(username, password, proxy={"http": "http://1.2.3.4", "https": "https://1.2.3.4"}) +host = Host( + username, + password, + proxy={ + "http": "socks5://username:password@host:port", + "https": "socks5://username:password@host:port" + } +) ``` +Ensta uses the same proxy settings as the **requests** module. +