Total_size = int(('content-length', 0))įor data in response. Here you can browse and download YIFY Movies and TV Series in excellent 480p, 720p, 1080p, 2160p / 4K and 3D quality, all at the smallest file size. With connection.get(iso_image, stream=True) as response, \ import shutilīeautifulSoup(kali_page, 'lxml').select('table a') I'm using the Net Installer as it's lighter in size. Here's my take on this if you want to go for. # with open(torrent_file, 'wb') as f_torrent: #torrent_file = re.findall('filename='(.+)'', disposition) With requests.get(Download_Kali(self.locator).locate_torrent()) as torrent_response: Torrent_links = for torrent in ('a', string='Torrent')] I looked into the headers of the torrent_response, and this is what came up: I'm trying to quickly download kali-linux file from /downloads using requests, and bs4, but in the headers of the torrent response, there is no: response.headers My reference was from: How to download a file with.