{"cells": [{"cell_type": "markdown", "metadata": {}, "source": ["# 1A.algo - Parcours dans un graphe (wikip\u00e9dia) - correction\n", "\n", "Correction du notebook du m\u00eame titre. On part d'une page, on explore les liens des pages li\u00e9es \u00e0 la premi\u00e8re et on continue. On utilise le module [beautifulsoup4](https://pypi.python.org/pypi/beautifulsoup4) ([web scrapping](https://fr.wikipedia.org/wiki/Web_scraping)) pour parser les pages."]}, {"cell_type": "code", "execution_count": 1, "metadata": {}, "outputs": [{"data": {"text/html": ["
run previous cell, wait for 2 seconds
\n", ""], "text/plain": [""]}, "execution_count": 2, "metadata": {}, "output_type": "execute_result"}], "source": ["from jyquickhelper import add_notebook_menu\n", "add_notebook_menu()"]}, {"cell_type": "markdown", "metadata": {}, "source": ["Solution de [F\u00e9lix Revert](https://github.com/FelixChop/getting-to-philosophy)."]}, {"cell_type": "markdown", "metadata": {}, "source": ["## Exercice 1 : lire une page web\n"]}, {"cell_type": "code", "execution_count": 2, "metadata": {}, "outputs": [{"data": {"text/plain": ["b'\\r\\n\\r\\n\\r\\n