def extract_items(self):
        """Use latest annotations to extract items from current page"""
        self._open_tab()
        project = self.data['project']
        spider = self.data['spider']
        sample = self.data.get('sample')
        if not all((project, spider)):
            return {'type': 'raw'}
        c = ItemChecker(self, project, spider, sample)
        # TODO: add option for user to view raw and js items in UI from WS
        items, changes, changed_values, links = c.extract()
        return {'links': links, 'items': items, 'changes': changes,
                'changed': changed_values, 'type':
                'js' if c.using_js else 'raw'}
Use latest annotations to extract items from current page
slyd/slyd/splash/commands.py