ig_bot/unsorted/enstaTest.py
2024-05-25 00:13:33 -07:00

23 lines
No EOL
620 B
Python

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