def load_page(self):
        """Load page in virtual url from provided url"""
        if 'url' not in self.data:
            return {'error': 4001, 'message': 'Required parameter url'}
        self._open_tab()

        self.tab.loaded = False
        meta = self.data.get('_meta', {})

        def on_complete(is_error, err_info=None):
            extra_meta = {'id': meta.get('id')}
            print('Completed page load')
            if is_error:
                msg = 'Unknown error' if err_info is None else err_info.text
                extra_meta.update(error=4500, reason=msg)
            else:
                self.tab.loaded = True
            with data_store_context():
                self.socket.sendMessage(self.metadata(extra_meta))
            self.cookies()

        # Specify the user agent directly in the headers
        # Workaround for https://github.com/scrapinghub/splash/issues/290
        headers = {}
        if "user_agent" in meta:
            headers['User-Agent'] = meta['user_agent']
        self.tab.go(self.data['url'],
                    lambda: on_complete(False),
                    lambda err=None: on_complete(True, err),
                    baseurl=self.data.get('baseurl'),
                    headers=headers)
Load page in virtual url from provided url
slyd/slyd/splash/commands.py