Local module url


Purpose


Functions for getting text, lists, and csv sheets

  • Function url.get_contents( link )
  • Returns the contents of the web resource indicated by parameter link.
  • Function url.get_strings( link )
  • Returns the contents of the web resource indicated by parameter link as a list of strings.
  • Function url.get_lines( link )
  • Returns the contents of the web resource indicated by parameter link as a list of lines.
  • Function url.get_csv_dataset( link )
  • Returns the contents of the csv web resource indicated by parameter link as a dataset sheet whose cell values are all strings.
  • Function url.get_and_convert_csv_dataset( link )
  • Returns the contents of the csv web resource indicated by parameter link as a dataset sheet whose cell values are either string, int, float, or bool as appropriate.

Functions for image acquisition and display

  • Function get_image( source )
  • Returns a new PIL image for the image indicated by source, where source is an web-based image, local image, or existing PIL image
  • Function get_student_image( id )
  • Returns a PIL image indicated for student id