diezo / Ensta

🔥 Fast & Reliable Python Package For Instagram API - 2024
https://bit.ly/ensta-discord
MIT License
371 stars 44 forks source link

Host.__init__() missing 1 required positional argument: 'password' #16

Closed jshen340 closed 1 year ago

jshen340 commented 1 year ago

Hi! I'm just starting out, and I'm trying to get my login to work through the host. I keep running into this error:

File "C:\Users\python\login.py", line 4, in host = Host(ID) ^^^^^^^^ TypeError: Host.init() missing 1 required positional argument: 'password'

Here is the code I've entered; I can't figure out what is wrong.

`from ensta import Host, NewSessionID

ID = NewSessionID("", "") host = Host(ID)`

What do you advise I do? Thank you in advance!

diezo commented 1 year ago

Hi. I rolled out some major updates recently to make this library even more easier to use. Now, you don't need to generate new session id yourself. Instead, Host class will handle it for you.

Here's the code that you need:

from ensta import Host

host = Host(username, password)

If you have any other questions, feel free to mention them here. Thankyou.