Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Beautiful Soup Python Library 


Urllib.request Python Library 

  • Can open files that come from a URL request 

  • Can save local copy of image from website 

  • Filevar = Open(localfilename.jpg, ‘wb’)   (’wb’ is for write bytes) 

  • Filevar.write(urllib.request.urlopen(URLstring.jpg).read()) 

  • Filevar.close()