ig_bot/unsorted/enstaTest.py

23 lines
620 B
Python
Raw Normal View History

2024-05-25 09:13:33 +02:00
import ensta
# Login
username = "elsewhereelsie"
password = "DE!k6wKV"
totp_token="MSNSH6RSOVCEVDAQFS7NOKHUUTYE5YB5"
session = ensta.SessionManager()
webSesh = ensta.Web(username, password, "session.txt", totp_token="MSNSH6RSOVCEVDAQFS7NOKHUUTYE5YB5")
# websession = ensta.WebSession(session)
# print(f"{host.private_info}")
# print(f"{webSesh.get_username()}")
# Fetch someone's profile
profile = webSesh.profile("sangye")
# Print profile info
print(profile.biography)
print(profile.is_private)
print(profile.profile_picture_url_hd)
mobile = ensta.Mobile(username, password, totp_token=totp_token)
# mobile.comment