I need to download a video from a server. Right now I have something like this:
import requests
URL = f'{base_url}/{video_data["videofilename"]}'
FILE_TO_SAVE_AS = f'{video_data["videofilename"]}'
resp = requests.get(URL) # making requests to server
with open(FILE_TO_SAVE_AS, "wb") as f: # opening a file handler to create new file
f.write(resp.content) # writing content to file
video_data is a dictionary which contains all the video server filenames
This code downloads the video alright, but does not include the sound. Do I have to download it seperately?
Many thanks!