Skip to content

Commit

Permalink
Merge pull request #22 from lihsimi/master
Browse files Browse the repository at this point in the history
Fix: update_homepage_source was not using proxy.
  • Loading branch information
diezo authored Sep 25, 2023
2 parents 0e78afb + 6bee285 commit 52efb9d
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions ensta/BaseHost.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,11 +43,12 @@ class BaseHost:
def __init__(self, session_id: str, proxy: dict[str, str] | None = None) -> None:
self.x_ig_www_claim = "hmac." + "".join(random.choices(string.ascii_letters + string.digits + "_-", k=48))
update_session(self)
update_homepage_source(self)
update_app_id(self)

if proxy is not None: self.request_session.proxies.update(proxy)

update_homepage_source(self)
update_app_id(self)

self.guest = Guest(
homepage_source=self.homepage_source,
app_id=self.insta_app_id
Expand Down

0 comments on commit 52efb9d

Please sign in to comment.