Skip to main content
100%

Get remote URL of a compressed Pypi package when not available on Github

✓ Published0🌍 Public
TThomasG77
Last edited Jul 17, 2026
Created on Jul 17, 2026

This example shows how to retrieve the direct download URL for the latest version of a Python package from PyPI when the package is not hosted on GitHub. It queries the PyPI simple index for each package in a hardcoded list, parses the HTML with BeautifulSoup, and extracts the last version link. The script uses the `requests` library to fetch the page and prints the URL attributes along with the version name for the packages `to-file-like-obj`, `stream-zip`, and `stream-unzip`.

AI-generated description

Similar vizzes