docs: def site(self, action):
          """
          Returns site query
          """
          query = None
          viewdays = 7
          hostpath = self.uri + self.endpoint
  
          if action == 'siteinfo':
              query = hostpath + (
                  '?action=query'
                  '&meta=siteinfo|siteviews'
                  '&siprop=general|statistics'
                  '&list=mostviewed&pvimlimit=max')
              query += '&pvisdays=%d' % viewdays  # meta=siteviews
              self.set_status('query', 'siteinfo|siteviews|mostviewed')
          elif action == 'sitematrix':
              query = hostpath + '?action=sitematrix'
              self.set_status('sitematrix', 'all')
          elif action == 'sitevisitors':
              query = hostpath + (
                  '?action=query'
                  '&meta=siteviews&pvismetric=uniques')
              query += '&pvisdays=%d' % viewdays  # meta=siteviews
              self.set_status('query', 'siteviews:uniques')
  
          if not query:
              raise ValueError("Could not form query")
  
          query += '&format=json&formatversion=2'
  
          return query