@open_tab
def extract_items(data, socket):
 (project, spider, sample) = (data['project'], data['spider'], data.get('sample'))
 if (not all((project, spider))):
  return {'type': 'raw'}
 c = ItemChecker(socket, project, spider, sample)
 (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')}

@ open_tab def extract_items ( data , socket ) : ( project , spider , sample ) = ( data [ 'project' ] , data [ 'spider' ] , data . get ( 'sample' ) ) if ( not all ( ( project , spider ) ) ) : return { 'type' : 'raw' } c = ItemChecker ( socket , project , spider , sample ) ( 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 .