MSDLC Details
MSDLC Details is a tiny Python library for retrieving Microsoft Download Center page details.
A Download Center details page such as https://www.microsoft.com/en-us/download/details.aspx?id=56519 keeps a stable URL, while the file behind its Download button changes with every release. MSDLC Details reads the page and returns the current file URL along with the rest of the download's details.
Installation
pip3 install msdlcdetails
Usage
from msdlcdetails import get_details
details = get_details("https://www.microsoft.com/en-us/download/details.aspx?id=56519")
print(details.title) # Azure IP Ranges and Service Tags – Public Cloud
print(details.version) # 2026.11.02
print(details.download_url) # https://download.microsoft.com/download/.../ServiceTags_Public_20261102.json
get_details accepts a details page URL (details.aspx?id= or details?id=,
with or without a locale) or a bare download ID such as 56519. Optional
arguments are locale (e.g. ja-jp, overriding the URL's language) and
timeout in seconds.
Some downloads offer several files. download_url returns the file flagged as
primary on the page, or the first file when none is flagged. Use files or
find_file to choose a specific one:
details = get_details(40784) # Visual C++ Redistributable for Visual Studio 2013
x64 = details.find_file("*x64*.exe")
print(x64.url, x64.size)
To parse HTML you have already retrieved, use parse_details(html).
Download details
| Attribute | Type | Description |
|---|---|---|
details_id |
String | Download ID, e.g. 56519 |
url |
String | Details page URL |
locale |
String | Page culture code, e.g. en-us |
title |
String | Download title |
description |
String | Short description |
version |
String | Version shown in the Details section |
date_published |
String | Date published shown in the Details section, as on the page |
files |
List of DownloadFile |
Files offered by the Download button |
primary_file |
DownloadFile |
File the Download button points to |
download_url |
String | URL of primary_file |
details |
String | Details section text (may contain HTML) |
system_requirements |
String | System requirements text (may contain HTML) |
supported_os |
List of strings | Supported operating systems |
install_instructions |
String | Install instructions text (may contain HTML) |
additional_information |
String | Additional information text (may contain HTML) |
related_resources |
List of RelatedResource |
Related links, each with title and url |
available_locales |
List of Locale |
Page languages, each with culture_code and name |
raw |
Dictionary | Unprocessed data embedded in the page |
Each DownloadFile has name, url, size (bytes), version,
date_published (datetime, or None when unparseable), date_published_raw
and is_primary.
Errors
All errors subclass MSDLCDetailsError:
| Error | Raised when |
|---|---|
InvalidUrlError |
The value is not a Download Center details URL or ID (also a ValueError) |
FetchError |
The page returns an HTTP error, or cannot be retrieved after retrying transient network failures |
DetailsNotFoundError |
The page has no download details, e.g. an unknown download ID |
How it works
Details pages embed their data as JSON in an inline script,
window.__DLCDetails__={"dlcDetailsView":{...}}. MSDLC Details decodes that
object directly rather than scraping rendered HTML. Requests are sent with
browser-like headers because the Download Center rejects some non-browser
clients.
Colophon
Build reports:
Metadata
Release files for msdlcdetails 1.0.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| msdlcdetails-1.0.0.tar.gz | 13.9 kB | Without provenance | Details for msdlcdetails-1.0.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| msdlcdetails-1.0.0-py3-none-any.whl | Python 3 | none | any | Details for msdlcdetails-1.0.0-py3-none-any.whl |
Total release size: 29.8 kB
Release files / msdlcdetails-1.0.0.tar.gz
| Download URL | msdlcdetails-1.0.0.tar.gz |
|---|---|
| Size | 13.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
28921e7fbdc4f12814bff14e6280bc66bcb6bac245725d52414fbc9ac960b69c
|
|
BLAKE2b-256 checksum How to use checksums |
669ee83fed19fa47923a9d1cb29b96aa37446f25024ecaf8d0afbae39efb52a8
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.14.10
|
Release files / msdlcdetails-1.0.0-py3-none-any.whl
| Download URL | msdlcdetails-1.0.0-py3-none-any.whl |
|---|---|
| Size | 15.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
e64b1b19d1a6bcab11fd138698df2cb3ead828f0916e4be972f017cee7368ed3
|
|
BLAKE2b-256 checksum How to use checksums |
53b4409f989011472b3676beb36693006b2d5fe9f0e6c68f01dd18172dfffa83
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.14.10
|
Security for msdlcdetails 1.0.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.