title: Youtube video download using python script
body: <p>i have this script for downloading the youtube video</p>
  
  <pre><code>from pytube import YouTube
  
  yt = YouTube('https://www.youtube.com/watch?v=kAGacI3JwS4')
  #yt.title
  #yt.thumbnail_url
  #yt.streams.all()
  stream = yt.streams.first()
  #stream
  stream.download('C:\\Users\')
  </code></pre>
  
  <p>but i wanted this to happened based on a user prompt mode.so it should ask the user to enter the url then from there take it further and download the video,so i did like this </p>
  
  <pre><code>&gt;&gt;&gt; pk=input("Enter the url:")
  
  Enter the url:https://www.youtube.com/watch?v=GhklL_kStto
  &gt;&gt;&gt; pk
  
  'https://www.youtube.com/watch?v=GhklL_kStto'
  &gt;&gt;&gt; pk.title
  
  &lt;built-in method title of str object at 0x02362770&gt;
  &gt;&gt;&gt; pk.stream()
   Traceback (most recent call last):
  File "&lt;pyshell#44&gt;", line 1, in &lt;module&gt;
  &gt;&gt;pk.stream()
  AttributeError: 'str' object has no attribute 'stream'
  </code></pre>
  
  <p>so this is what the error am getting. can someone help me to solve this issue?</p>
  
  <p>appreciate your support!</p>