Jump to content

HHo2016

Member
  • Posts

    4
  • Joined

  • Last visited

  • Donations

    0.00 USD 
  • Country

    United States

Everything posted by HHo2016

  1. Total folder size ~230 GB (!!) - for ALL updates (of all languages) in all the .CSV files.
  2. Idk either, so I have already downloaded all of the updates to be safe, which took me ~20 hours straight... MS might one day decide to "retire" (aka delete) them as they have already announced they would be removing all SHA-1 signed files from their website. (But then again, maybe the most recent POSReady 2009 updates won't be deleted so soon since I believe some are dual-signed with SHA-2 e.g. KB4493435 and are also available on the Microsoft Update Catalog). Newest updates on MS files removal: https://docs.microsoft.com/en-us/lifecycle/announcements/sha-1-signed-content-retired and https://techcommunity.microsoft.com/t5/windows-it-pro-blog/microsoft-to-use-sha-2-exclusively-starting-may-9-2021/ba-p/2261924 - of note is old .NET Framework installers will be removed on July 26, 2021 and SHA-1 Root Certification Authority will expire on May 9, 2021.
  3. Yeah I just threw together my original code quickly and I only tested it with Python 3.9 (which I now realize doesn't install on Windows 7 or older...) For my original code, you needed to create the download folders before running the script (I didn't have time then to figure out how to create a new folder via Python, so I did it via a .bat file instead that created the folders before invoking my Python code). Example: "NT_5.1.2600-x86-All_DL" folder needed to be created for "NT_5.1.2600-x86-All.csv" before running the script. Anyway, thanks for extending it!
  4. In case anyone wants to download all the updates in the CSV file... I created a Python download script to bulk download those updates - tested on Python 3.9.2 but should also work for older Python 3 versions after installing the "requests" package ('pip install requests' shall suffice): One important note: You need to create the directories corresponding to each CSV file in "csv_files" using the following format (e.g. "NT_5.1.2600-x86-All_DL" for "NT_5.1.2600-x86-All.csv") before running the script. import csv import requests # Add/replace the filenames in csv_files below with the CSV files you want to download csv_files = ['NT_5.1.2600-x86-All.csv', 'NT_5.1.2600-x86-IE-All.csv', 'NT_5.2.3790-x64-All.csv', 'NT_5.2.3790-x64-IE.csv', 'NT_5.2.3790-x86-All.csv', 'NT_5.2.3790-x86-IE.csv'] for csvfile in csv_files: print(f'Starting file download for {csvfile}.') with open(csvfile) as csv_file: csv_reader = csv.reader(csv_file, delimiter=',') line_count = 0 for row in csv_reader: if line_count == 0: print(f'Column names are {", ".join(row)}') line_count += 1 else: print(f'\tDownloading {row[0]}...') url = row[1] r = requests.get(url) with open('./' + csvfile[:-4] + '_DL/' + row[0], 'wb') as f: f.write(r.content) print(f'\tCompleted with status code {r.status_code}.') line_count += 1 print(f'Processed {line_count} lines.') print(f'Download Completed.') Hope someone finds this useful. Personally, it took me ~13 hours to download all the updates for the 6 CSV files I put in my script above. Also, I found duplicates in 'NT_5.2.3790-x64-All.csv': kb2957503 turns up twice. Just as FYI since #lines in the CSV will not match with the number of files in the corresponding folder.
×
×
  • Create New...