code: def get(args):
      
  
      html = args.H
      lang = args.l
      nowrap = args.n
      query = args.q
      silent = args.s
      title = args.t
      verbose = args.v
      wiki = args.w
  
      if query:
          qobj = WPToolsQuery(lang=lang, wiki=wiki)
          if title:
              return qobj.query(title)
          return qobj.random()
  
      page = wptools.page(title, lang=lang, silent=silent,
                          verbose=verbose, wiki=wiki)
  
      try:
          page.get_query()
      except (StandardError, ValueError, LookupError):
          return "NOT_FOUND"
  
      if not page.data.get('extext'):
          out = page.cache['query']['query']
  
      out = _page_text(page, nowrap)
      if html:
          out = _page_html(page)
  
      try:
          return out.encode('utf-8')
      except KeyError:
          return out
docs: invoke wptools and assemble selected output