You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Ensta is a simple, reliable and up-to-date python package for Instagram API.
@@ -34,9 +32,9 @@ Read the [**Pre-Requisites**](https://github.com/diezo/Ensta/wiki/Pre%E2%80%90re
34
32
Fetching profile info by username:
35
33
36
34
```python
37
-
from ensta importHost
35
+
from ensta importWeb
38
36
39
-
host =Host(username, password)
37
+
host =Web(username, password)
40
38
41
39
profile = host.profile("leomessi")
42
40
@@ -45,12 +43,6 @@ print(profile.is_private)
45
43
print(profile.profile_picture_url_hd)
46
44
```
47
45
48
-
<!--## Bypass IP Restrictions
49
-
If you're being rate limited when using Ensta on your home network or Ensta doesn't work when you deploy your app to the cloud, you should consider using a reputed proxy. Here's how to do that:
50
-
1. Visit [abcproxy](https://www.abcproxy.com/?code=O4H3OC0O) and apply coupon ```O4H3OC0O``` for additional discount.
51
-
2. Buy a residential SOCKS5 proxy there.
52
-
3. Configure Ensta to use that proxy. See the [**Supported Actions**](https://github.com/diezo/ensta?tab=readme-ov-file#supported-actions) section.-->
Copy file name to clipboardExpand all lines: README_OLD.md
+41-41Lines changed: 41 additions & 41 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -34,9 +34,9 @@ Read the [**Pre-Requisites**](https://github.com/diezo/Ensta/wiki/Pre%E2%80%90re
34
34
Fetching profile info by username:
35
35
36
36
```python
37
-
from ensta importHost
37
+
from ensta importWeb
38
38
39
-
host =Host(username, password)
39
+
host =Web(username, password)
40
40
41
41
profile = host.profile("leomessi")
42
42
@@ -64,9 +64,9 @@ When you should use a proxy:
64
64
- You're deploying Ensta to the cloud. (Instagram blocks requests from IPs of cloud providers, so a proxy must be used)
65
65
66
66
```python
67
-
from ensta importHost
67
+
from ensta importWeb
68
68
69
-
host =Host(
69
+
host =Web(
70
70
username,
71
71
password,
72
72
proxy={
@@ -87,13 +87,13 @@ Ensta uses the same proxy settings as the **requests** module.
87
87
We recommend using your email address to sign in. But if you have multiple accounts created on the same email address, you may consider using your username instead.
88
88
89
89
```python
90
-
from ensta importHost
90
+
from ensta importWeb
91
91
92
92
# Recommended
93
-
host =Host(email, password)
93
+
host =Web(email, password)
94
94
95
95
# This also works
96
-
host =Host(username, password)
96
+
host =Web(username, password)
97
97
```
98
98
99
99
</details>
@@ -107,9 +107,9 @@ Ensta will automatically save your login session in a file named ```ensta-sessio
107
107
But, if you wish to load a session manually, you can use the **SessionHost Class** instead of **Host Class** by passing your session data (which is stored inside ```ensta-session.json```) as a string.
0 commit comments