class_docstr: Read a document from multiple extensions
class_docstr_tok: ["Read","a","document","from","multiple","extensions"]
docstr: Interpret a web page as a PDF document
  
  >>> from doctr.io import DocumentFile
  >>> doc = DocumentFile.from_url("https://www.yoursite.com")
  
  Args:
  ----
      url: the URL of the target web page
      **kwargs: additional parameters to :meth:`pypdfium2.PdfPage.render`
  
  Returns:
  -------
      the list of pages decoded as numpy ndarray of shape H x W x 3
docstr_tok: ["Interpret","a","web","page","as","a","PDF","document",">",">",">","from","doctr.io","import","DocumentFile",">",">",">","doc","=","DocumentFile.from_url","(","``","https",":","\/\/www.yoursite.com","''",")","Args",":","--","--","url",":","the","URL","of","the","target","web","page","*","*","kwargs",":","additional","parameters","to",":","meth",":","`","pypdfium2.PdfPage.render","`","Returns",":","--","--","--","-","the","list","of","pages","decoded","as","numpy","ndarray","of","shape","H","x","W","x","3"]
code: def from_url(cls, url: str, **kwargs) -> List[np.ndarray]:
      """Interpret a web page as a PDF document
  
      >>> from doctr.io import DocumentFile
      >>> doc = DocumentFile.from_url("https://www.yoursite.com")
  
      Args:
      ----
          url: the URL of the target web page
          **kwargs: additional parameters to :meth:`pypdfium2.PdfPage.render`
  
      Returns:
      -------
          the list of pages decoded as numpy ndarray of shape H x W x 3
      """
      pdf_stream = read_html(url)
      return cls.from_pdf(pdf_stream, **kwargs)
  
file_path: doctr/doctr/io/reader.py
imports: from pathlib import Path
  from typing import List, Sequence, Union
  import numpy
  from doctr.utils.common_types import AbstractFile
  from .html import read_html
  from .image import read_img_as_numpy
  from .pdf import read_pdf
label_desc: Use image node_id 2 for calling the DocumentFile obj's underlying member method code with example usage: obj.from_url(cls, url) and returns: cls