title: python download image from url and thumbnail and resize
body: <p>I am still new at programming and working on a school assignment were I have to find an image from a website and have it save to a specific folder on my drive as well as thumbnail and resize the image to be smaller. I can't have the specific folder hard coded. It has to pull up a search for file area. Any help will be greatly appreciated. This is what I got so far but I am so lost from here.</p>
  
  <pre><code>import urllib
  def myCreate():
      """
      myCreate(): function pulls a picture from the internet and creates a thumbnail and saves it to my computer.
      """
      path = setMediaPath()
      data = urllib.urlretrieve("https://www.catster.com/wp-content/uploads/2018/07/Savannah-cat-long-body-shot.jpg", path + "myPicture.jpg")
      file = getMediaPath("myPicture.jpg")
      picture = makePicture(file)
  myCreate()
  </code></pre>