def refresh_constants(self):
        
        src = self.browser.open('https://www.dropbox.com/home').read()
        
        try:
            self.root_ns = re.findall(r"\"root_ns\": (\d+)", src)[0]
            self.token = re.findall(r"\"TOKEN\": ['\"](.+?)['\"]", src)[0].decode('string_escape')
            self.uid = re.findall(r"\"id\": (\d+)", src)[0]
            self.request_id = re.findall(r"\"REQUEST_ID\": ['\"]([a-z0-9]+)['\"]", src)[0]
            
        except:
            raise(Exception("Unable to find constants for AJAX requests"))
Vector copy.
dataset/ETHPy150Open jncraton/PythonDropboxUploader/dbupload/dbconn.py/DropboxConnection.refresh_constants--crossover with--dataset/ETHPy150Open lebedov/scikit-cuda/skcuda/magma.py/magma_ccopy