Pretty much what the question says. Right now I have this function using pytube:

```py
    def download(request, video_url):
        url='http://www.youtube.com/watch?v='+str(video_url)
        homedir = os.path.expanduser("~")
        dirs = homedir + '/Downloads'
        download = YouTube(url).streams.first().download(dirs)   
        return redirect('../../')

```

But this downloads the video to a directory `/Downloads/` in pythonanywhere - the site that I have uploaded my project to. 

How do I download the video to the user's machine? The solution doesn't have to be using the pytube package, as I just want an answer. It will be great if you tell me how to download the file as an `.mp3` file too. 

Thanks in advance.