def extract(self):
        """Run spider on page URL to get extracted links and items"""
        if (self.tab is None or not self.tab.loaded or
                not (self.socket.spider or (self.data and self.storage))):
            return {
                'items': [],
                'links': {},
            }
        spec = self.socket.spiderspec
        if spec is not None:
            c = ItemChecker(self, spec.project, spec.name)
            items, changes, changed_values, links = c.extract()
            using_js = c.using_js
        else:
            items, changes, changed_values, links, using_js = [], [], [], [], 0
        return {'links': links, 'items': items, 'changes': changes,
                'changed': changed_values,
                'type': 'js' if using_js else 'raw'}
Run spider on page URL to get extracted links and items
slyd/slyd/splash/commands.py