code: def _set_data(self, action):
          
          data = self._load_response(action)
  
          self._handle_continuations(data, 'category')
  
          if action == 'category':
              members = data.get('query').get('categorymembers')
              if members:
                  self._add_members(members)
  
          if action == 'random':
              rand = data['query']['random'][0]
              data = {'pageid': rand.get('id'),
                      'title': rand.get('title')}
              self.data.update(data)
              self.params.update(data)
docs: Set category member data from API response