Beispiel #1
0
    def __init__(self, miner):
        self.miner = miner
        con = get(self.miner.url,
                  headers=self.miner.headers,
                  auth=self.miner.auth)

        self.install_handles(con)
Beispiel #2
0
 def on_redirect(self, con, response):
     con = get(response.headers['location'], 
     headers=self.miner.headers, auth=self.miner.auth)
     self.install_handles(con)