def __init__(self, miner): self.miner = miner con = get(self.miner.url, headers=self.miner.headers, auth=self.miner.auth) self.install_handles(con)
def on_redirect(self, con, response): con = get(response.headers['location'], headers=self.miner.headers, auth=self.miner.auth) self.install_handles(con)