title: Python 3.5.2 download vimeo video
body: <p>When I use view-source in a html browser it brings up the source code.</p>
  
  <pre><code>view-source:https://vimeo.com.video/(video id #)
  </code></pre>
  
  <p>This brings up the source code of the underlying video so I can choose what quality video I want to download.</p>
  
  <p>I want to do the same thing automatically instead of having to go through the browser all the time to download a vimeo video.</p>
  
  <p>When I try to do the same thing using python 3.5.2 I end up getting</p>
  
  <pre><code>No connection adapters were found for 'view-source:https://player.vimeo.com/video/(video id #)
  </code></pre>
  
  <p>In the browser, when I try to bring up the page as a regular page all I get is the error page Sorry, this is a private video and cannot be displayed. I don't get the error code on the same video when I use view-source in the browser instead I get the source code and choose which quality I want.</p>
  
  <p>In Python I get the No connection adapters when I try to use view-source. If I don't then all I get is Error 403: Forbidden.</p>
  
  <p>I have tried both with urllib.requests and BeautifulSoup and cannot get anywhere with either option.</p>
  
  <pre><code>page = requests.get('https://player.vimeo.com/video/' + video[0])
  html2 = BeautifulSoup(page.content, 'html.parser')
  </code></pre>
  
  <p>Above gives the Sorry page.</p>
  
  <pre><code>html1 = 'https://player.vimeo.com/video/' + video[0]
  print(html1)
  result = requests.get(html1, headers=headers)
  with urllib.request.urlopen(html1) as att:
      html2 = att.read()
  </code></pre>
  
  <p>Above gives Error 403: Forbidden</p>
  
  <p>How do I get it so I can get the 'view-source' source code from the webpage?</p>