{ "cells": [ { "cell_type": "markdown", "id": "c8b3ccce", "metadata": {}, "source": [ "# [Building a dataset of Python versions with regular expressions](https://www.dataschool.io/web-scraping-with-regex/)" ] }, { "cell_type": "markdown", "id": "327aa069", "metadata": {}, "source": [ "[Python Documentation by Version](https://www.python.org/doc/versions/)" ] }, { "cell_type": "code", "execution_count": 1, "id": "068029f6", "metadata": {}, "outputs": [], "source": [ "import requests" ] }, { "cell_type": "code", "execution_count": 2, "id": "07c1652b", "metadata": {}, "outputs": [], "source": [ "r = requests.get('https://www.python.org/doc/versions/')" ] }, { "cell_type": "code", "execution_count": 3, "id": "4872696c", "metadata": {}, "outputs": [ { "name": "stdout", "output_type": "stream", "text": [ "
Some previous versions of the documentation remain available\n", "online. Use the list below to select a version to view.
\n", "For unreleased (in development) documentation, see\n", "In Development Versions.
\n", "| \n", " | Version | \n", "Date | \n", "
|---|---|---|
| 0 | \n", "3.11.2 | \n", "8 February 2023 | \n", "
| 1 | \n", "3.11.1 | \n", "6 December 2022 | \n", "
| 2 | \n", "3.11.0 | \n", "24 October 2022 | \n", "
| 3 | \n", "3.10.10 | \n", "8 February 2023 | \n", "
| 4 | \n", "3.10.9 | \n", "6 December 2022 | \n", "
| ... | \n", "... | \n", "... | \n", "
| 184 | \n", "1.5.2 | \n", "30 April 1999 | \n", "
| 185 | \n", "1.5.1p1 | \n", "6 August 1998 | \n", "
| 186 | \n", "1.5.1 | \n", "14 April 1998 | \n", "
| 187 | \n", "1.5 | \n", "17 February 1998 | \n", "
| 188 | \n", "1.4 | \n", "25 October 1996 | \n", "
189 rows × 2 columns
\n", "