{ "cells": [ { "cell_type": "markdown", "id": "9c6bc3d1-1b50-4765-a2e5-26820a806e4b", "metadata": {}, "source": [ "# INTRODUCCIÓN AL WEBSCRAPPING CON PYTHON" ] }, { "cell_type": "code", "execution_count": 1, "id": "825060b7-c232-4d26-9adc-845b2480e287", "metadata": {}, "outputs": [], "source": [ "import pandas as pd\n", "import numpy as np\n", "import matplotlib.pyplot as plt\n", "import seaborn as sns\n", "from datetime import datetime\n", "\n", "import warnings\n", "warnings.filterwarnings('ignore')\n", "\n", "pd.options.display.float_format = '{:.2f}'.format #Desactivar notación científica en pandas:\n", "np.set_printoptions(suppress=True) #Desactivar notación científica en numpy:\n", "pd.set_option('display.max_columns', None) #comando para mostrar todas las columnas" ] }, { "cell_type": "code", "execution_count": 4, "id": "ea8b8401-8e59-48e1-9f5b-833a105bd424", "metadata": {}, "outputs": [], "source": [ "# conda install -c conda-forge scrapy" ] }, { "cell_type": "markdown", "id": "5e3be669-55d1-401b-ac9a-dced0a390c01", "metadata": {}, "source": [ "Nos conectaremos a la web reddit y descargaremos información de alguno de los foros existentes.\n", "\n", "Esta primera parte la ejecutaremos en la consola del ordenador. Los comandos a ejecutar\n", "- Abrir un terminal\n", "- Escribir: scrapy shell\n", "- Una vez en la shell, escribir: fetch(\"https://www.reddit.com/r/gameofthrones/\")\n", "- Cuando termine, escribir: view(response)\n", "\n", "\n", "### Objetivos del scrapeo:\n", "- Extraer el título de cada post.\n", "- Extraer el total de votos de cada post.\n", "- Extraer el número total de comentarios.\n", "- Fecha de creación del post" ] }, { "cell_type": "markdown", "id": "d6d11723-5657-4df3-9cf0-ae894ca24a80", "metadata": {}, "source": [ "Extracción del titulo: \n", "response.css(\".title::text\").extract()" ] }, { "cell_type": "code", "execution_count": null, "id": "047a42e0-03f0-43bd-822d-979ae31bdfac", "metadata": {}, "outputs": [], "source": [] }, { "cell_type": "markdown", "id": "0ae64cb9-80bb-4322-b559-94736766aca8", "metadata": {}, "source": [ "# Scrapeo información liga (página estática).\n", "### Pasos ya vistos en una sesión previa" ] }, { "cell_type": "code", "execution_count": 10, "id": "76cd8d1e-c1ca-4abe-8074-7558d2912381", "metadata": {}, "outputs": [], "source": [ "import requests\n", "import pandas as pd" ] }, { "cell_type": "code", "execution_count": 13, "id": "5d037076-c0d3-4783-8c1d-e98b6e799f62", "metadata": {}, "outputs": [], "source": [ "urls = [\"http://www.marca.com/estadisticas/futbol/primera/2016_17/jornada_38/\",\n", " \"http://www.marca.com/estadisticas/futbol/primera/2017_18/jornada_38/\",\n", " \"http://www.marca.com/estadisticas/futbol/primera/2018_19/jornada_38/\",\n", " \"http://www.marca.com/estadisticas/futbol/primera/2019_20/jornada_38/\",\n", " \"http://www.marca.com/estadisticas/futbol/primera/2020_21/jornada_38/\"]" ] }, { "cell_type": "code", "execution_count": 14, "id": "4646529b-795b-44be-ab56-469a1492edf5", "metadata": {}, "outputs": [ { "name": "stdout", "output_type": "stream", "text": [ "0\n", "1\n", "2\n", "3\n", "4\n" ] } ], "source": [ "tablas = []\n", "for a in range(len(urls)):\n", " print(a)\n", " html = requests.get(urls[a]).content\n", " df_list = pd.read_html(html)\n", " tablas.append(df_list[-1]) # Nos quedamos con la ultima tabla descargada\n" ] }, { "cell_type": "code", "execution_count": 15, "id": "4d602976-7cb9-4dc5-b3b9-2650c9fee9f2", "metadata": {}, "outputs": [ { "data": { "text/html": [ "
\n", "\n", "\n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", "
ClasificaciónClasificación.1P.J.P.G.P.E.P.P.G.F.G.C.Ptos
01Barcelona382693903687
12Atlético3822106552976
23R. Madrid3821512634668
34Valencia3715157513560
45Sevilla3817813624759
56Getafe3715139483558
67Espanyol38141113485053
78Athletic38131411414553
89R. Sociedad38131114454650
910Betis3814816445250
1011Alavés38131114395050
1112Eibar38111413465047
1213Leganés38111215374345
1314Villarreal38101414495244
1415Levante38111116596644
1516Valladolid38101117325141
1617Celta38101117536241
1718Girona3891019375337
1819Huesca3771119436532
1920Rayo378722417031
\n", "
" ], "text/plain": [ " Clasificación Clasificación.1 P.J. P.G. P.E. P.P. G.F. G.C. Ptos\n", "0 1 Barcelona 38 26 9 3 90 36 87\n", "1 2 Atlético 38 22 10 6 55 29 76\n", "2 3 R. Madrid 38 21 5 12 63 46 68\n", "3 4 Valencia 37 15 15 7 51 35 60\n", "4 5 Sevilla 38 17 8 13 62 47 59\n", "5 6 Getafe 37 15 13 9 48 35 58\n", "6 7 Espanyol 38 14 11 13 48 50 53\n", "7 8 Athletic 38 13 14 11 41 45 53\n", "8 9 R. Sociedad 38 13 11 14 45 46 50\n", "9 10 Betis 38 14 8 16 44 52 50\n", "10 11 Alavés 38 13 11 14 39 50 50\n", "11 12 Eibar 38 11 14 13 46 50 47\n", "12 13 Leganés 38 11 12 15 37 43 45\n", "13 14 Villarreal 38 10 14 14 49 52 44\n", "14 15 Levante 38 11 11 16 59 66 44\n", "15 16 Valladolid 38 10 11 17 32 51 41\n", "16 17 Celta 38 10 11 17 53 62 41\n", "17 18 Girona 38 9 10 19 37 53 37\n", "18 19 Huesca 37 7 11 19 43 65 32\n", "19 20 Rayo 37 8 7 22 41 70 31" ] }, "execution_count": 15, "metadata": {}, "output_type": "execute_result" } ], "source": [ "tablas[2]" ] }, { "cell_type": "code", "execution_count": 17, "id": "8f58bc76-de38-4861-8add-cb63abcc0e47", "metadata": {}, "outputs": [], "source": [ "# La mayor parte de las páginas web actuales no son estáticas. Son dinámicas y generan su contenido 'bajo demanda'.\n", "# Por ello, este método no sirve en ellas." ] }, { "cell_type": "code", "execution_count": 18, "id": "87f5e85a-82af-422d-bb00-855450c6fba0", "metadata": {}, "outputs": [], "source": [ "# Probemos lo siguiente\n", "url = \"https://www.marca.com/futbol/primera-division/clasificacion-historica.html\"" ] }, { "cell_type": "code", "execution_count": 19, "id": "f2b7d1d7-f98d-47bd-8957-b9d5b46e1f84", "metadata": {}, "outputs": [], "source": [ "html = requests.get(url).content\n", "df_list = pd.read_html(html)\n", "df = df_list[-1] # Nos quedamos con la ultima tabla descargada" ] }, { "cell_type": "code", "execution_count": 20, "id": "fcb4fd38-1847-46a3-b8f7-e5accd4dd1d6", "metadata": {}, "outputs": [ { "data": { "text/html": [ "
\n", "\n", "\n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", "
Unnamed: 0EquipoTEMPTPPJPGPEPPGFGCDIFACT
01Real Madrid91474329321754589589628032982982352410
12Barcelona91463029311691598642628832763012262613
23Atlético85378227831338647798479334321361111017
34Valencia87364128331254670909463636719656610
45Athletic91358529321261694977481638889288710
................................................
5859UE Lleida2406813144170182-112000-
5960Xerez CD13438810203866-280003F
6061Condal1223078153757-20000-
6162At. Tetuán1193075185185-34000-
6263Cultural Leonesa1143054213465-310001F
\n", "

63 rows × 15 columns

\n", "
" ], "text/plain": [ " Unnamed: 0 Equipo TEMP TP PJ PG PE PP GF \\\n", "0 1 Real Madrid 91 4743 2932 1754 589 589 6280 \n", "1 2 Barcelona 91 4630 2931 1691 598 642 6288 \n", "2 3 Atlético 85 3782 2783 1338 647 798 4793 \n", "3 4 Valencia 87 3641 2833 1254 670 909 4636 \n", "4 5 Athletic 91 3585 2932 1261 694 977 4816 \n", ".. ... ... ... ... ... ... ... ... ... \n", "58 59 UE Lleida 2 40 68 13 14 41 70 \n", "59 60 Xerez CD 1 34 38 8 10 20 38 \n", "60 61 Condal 1 22 30 7 8 15 37 \n", "61 62 At. Tetuán 1 19 30 7 5 18 51 \n", "62 63 Cultural Leonesa 1 14 30 5 4 21 34 \n", "\n", " GC DIF 1º 2º 3º ACT \n", "0 3298 2982 35 24 10 1ª \n", "1 3276 3012 26 26 13 1ª \n", "2 3432 1361 11 10 17 1ª \n", "3 3671 965 6 6 10 1ª \n", "4 3888 928 8 7 10 1ª \n", ".. ... ... .. .. .. .. \n", "58 182 -112 0 0 0 - \n", "59 66 -28 0 0 0 3F \n", "60 57 -20 0 0 0 - \n", "61 85 -34 0 0 0 - \n", "62 65 -31 0 0 0 1F \n", "\n", "[63 rows x 15 columns]" ] }, "execution_count": 20, "metadata": {}, "output_type": "execute_result" } ], "source": [ "df" ] }, { "cell_type": "code", "execution_count": 21, "id": "52c8bdfb-1bf0-4e41-97e1-abedc5925ea8", "metadata": { "scrolled": true, "tags": [] }, "outputs": [ { "ename": "ValueError", "evalue": "No tables found", "output_type": "error", "traceback": [ "\u001b[0;31m---------------------------------------------------------------------------\u001b[0m", "\u001b[0;31mValueError\u001b[0m Traceback (most recent call last)", "\u001b[0;32m/tmp/ipykernel_232738/2719797224.py\u001b[0m in \u001b[0;36m\u001b[0;34m\u001b[0m\n\u001b[1;32m 2\u001b[0m \u001b[0murl\u001b[0m \u001b[0;34m=\u001b[0m \u001b[0;34m\"https://www.marca.com/futbol/primera-division/clasificacion.html\"\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[1;32m 3\u001b[0m \u001b[0mhtml\u001b[0m \u001b[0;34m=\u001b[0m \u001b[0mrequests\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0mget\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0murl\u001b[0m\u001b[0;34m)\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0mcontent\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[0;32m----> 4\u001b[0;31m \u001b[0mdf_list\u001b[0m \u001b[0;34m=\u001b[0m \u001b[0mpd\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0mread_html\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0mhtml\u001b[0m\u001b[0;34m)\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[0m\u001b[1;32m 5\u001b[0m \u001b[0mdf\u001b[0m \u001b[0;34m=\u001b[0m \u001b[0mdf_list\u001b[0m\u001b[0;34m[\u001b[0m\u001b[0;34m-\u001b[0m\u001b[0;36m1\u001b[0m\u001b[0;34m]\u001b[0m \u001b[0;31m# Nos quedamos con la ultima tabla descargada\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n", "\u001b[0;32m~/anaconda3/lib/python3.8/site-packages/pandas/util/_decorators.py\u001b[0m in \u001b[0;36mwrapper\u001b[0;34m(*args, **kwargs)\u001b[0m\n\u001b[1;32m 309\u001b[0m \u001b[0mstacklevel\u001b[0m\u001b[0;34m=\u001b[0m\u001b[0mstacklevel\u001b[0m\u001b[0;34m,\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[1;32m 310\u001b[0m )\n\u001b[0;32m--> 311\u001b[0;31m \u001b[0;32mreturn\u001b[0m \u001b[0mfunc\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0;34m*\u001b[0m\u001b[0margs\u001b[0m\u001b[0;34m,\u001b[0m \u001b[0;34m**\u001b[0m\u001b[0mkwargs\u001b[0m\u001b[0;34m)\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[0m\u001b[1;32m 312\u001b[0m \u001b[0;34m\u001b[0m\u001b[0m\n\u001b[1;32m 313\u001b[0m \u001b[0;32mreturn\u001b[0m \u001b[0mwrapper\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n", "\u001b[0;32m~/anaconda3/lib/python3.8/site-packages/pandas/io/html.py\u001b[0m in \u001b[0;36mread_html\u001b[0;34m(io, match, flavor, header, index_col, skiprows, attrs, parse_dates, thousands, encoding, decimal, converters, na_values, keep_default_na, displayed_only)\u001b[0m\n\u001b[1;32m 1096\u001b[0m \u001b[0mio\u001b[0m \u001b[0;34m=\u001b[0m \u001b[0mstringify_path\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0mio\u001b[0m\u001b[0;34m)\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[1;32m 1097\u001b[0m \u001b[0;34m\u001b[0m\u001b[0m\n\u001b[0;32m-> 1098\u001b[0;31m return _parse(\n\u001b[0m\u001b[1;32m 1099\u001b[0m \u001b[0mflavor\u001b[0m\u001b[0;34m=\u001b[0m\u001b[0mflavor\u001b[0m\u001b[0;34m,\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[1;32m 1100\u001b[0m \u001b[0mio\u001b[0m\u001b[0;34m=\u001b[0m\u001b[0mio\u001b[0m\u001b[0;34m,\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n", "\u001b[0;32m~/anaconda3/lib/python3.8/site-packages/pandas/io/html.py\u001b[0m in \u001b[0;36m_parse\u001b[0;34m(flavor, io, match, attrs, encoding, displayed_only, **kwargs)\u001b[0m\n\u001b[1;32m 924\u001b[0m \u001b[0;32melse\u001b[0m\u001b[0;34m:\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[1;32m 925\u001b[0m \u001b[0;32massert\u001b[0m \u001b[0mretained\u001b[0m \u001b[0;32mis\u001b[0m \u001b[0;32mnot\u001b[0m \u001b[0;32mNone\u001b[0m \u001b[0;31m# for mypy\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[0;32m--> 926\u001b[0;31m \u001b[0;32mraise\u001b[0m \u001b[0mretained\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[0m\u001b[1;32m 927\u001b[0m \u001b[0;34m\u001b[0m\u001b[0m\n\u001b[1;32m 928\u001b[0m \u001b[0mret\u001b[0m \u001b[0;34m=\u001b[0m \u001b[0;34m[\u001b[0m\u001b[0;34m]\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n", "\u001b[0;32m~/anaconda3/lib/python3.8/site-packages/pandas/io/html.py\u001b[0m in \u001b[0;36m_parse\u001b[0;34m(flavor, io, match, attrs, encoding, displayed_only, **kwargs)\u001b[0m\n\u001b[1;32m 904\u001b[0m \u001b[0;34m\u001b[0m\u001b[0m\n\u001b[1;32m 905\u001b[0m \u001b[0;32mtry\u001b[0m\u001b[0;34m:\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[0;32m--> 906\u001b[0;31m \u001b[0mtables\u001b[0m \u001b[0;34m=\u001b[0m \u001b[0mp\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0mparse_tables\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0;34m)\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[0m\u001b[1;32m 907\u001b[0m \u001b[0;32mexcept\u001b[0m \u001b[0mValueError\u001b[0m \u001b[0;32mas\u001b[0m \u001b[0mcaught\u001b[0m\u001b[0;34m:\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[1;32m 908\u001b[0m \u001b[0;31m# if `io` is an io-like object, check if it's seekable\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n", "\u001b[0;32m~/anaconda3/lib/python3.8/site-packages/pandas/io/html.py\u001b[0m in \u001b[0;36mparse_tables\u001b[0;34m(self)\u001b[0m\n\u001b[1;32m 220\u001b[0m \u001b[0mlist\u001b[0m \u001b[0mof\u001b[0m \u001b[0mparsed\u001b[0m \u001b[0;34m(\u001b[0m\u001b[0mheader\u001b[0m\u001b[0;34m,\u001b[0m \u001b[0mbody\u001b[0m\u001b[0;34m,\u001b[0m \u001b[0mfooter\u001b[0m\u001b[0;34m)\u001b[0m \u001b[0mtuples\u001b[0m \u001b[0;32mfrom\u001b[0m \u001b[0mtables\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[1;32m 221\u001b[0m \"\"\"\n\u001b[0;32m--> 222\u001b[0;31m \u001b[0mtables\u001b[0m \u001b[0;34m=\u001b[0m \u001b[0mself\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0m_parse_tables\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0mself\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0m_build_doc\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0;34m)\u001b[0m\u001b[0;34m,\u001b[0m \u001b[0mself\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0mmatch\u001b[0m\u001b[0;34m,\u001b[0m \u001b[0mself\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0mattrs\u001b[0m\u001b[0;34m)\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[0m\u001b[1;32m 223\u001b[0m \u001b[0;32mreturn\u001b[0m \u001b[0;34m(\u001b[0m\u001b[0mself\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0m_parse_thead_tbody_tfoot\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0mtable\u001b[0m\u001b[0;34m)\u001b[0m \u001b[0;32mfor\u001b[0m \u001b[0mtable\u001b[0m \u001b[0;32min\u001b[0m \u001b[0mtables\u001b[0m\u001b[0;34m)\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[1;32m 224\u001b[0m \u001b[0;34m\u001b[0m\u001b[0m\n", "\u001b[0;32m~/anaconda3/lib/python3.8/site-packages/pandas/io/html.py\u001b[0m in \u001b[0;36m_parse_tables\u001b[0;34m(self, doc, match, attrs)\u001b[0m\n\u001b[1;32m 550\u001b[0m \u001b[0;34m\u001b[0m\u001b[0m\n\u001b[1;32m 551\u001b[0m \u001b[0;32mif\u001b[0m \u001b[0;32mnot\u001b[0m \u001b[0mtables\u001b[0m\u001b[0;34m:\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[0;32m--> 552\u001b[0;31m \u001b[0;32mraise\u001b[0m \u001b[0mValueError\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0;34m\"No tables found\"\u001b[0m\u001b[0;34m)\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[0m\u001b[1;32m 553\u001b[0m \u001b[0;34m\u001b[0m\u001b[0m\n\u001b[1;32m 554\u001b[0m \u001b[0mresult\u001b[0m \u001b[0;34m=\u001b[0m \u001b[0;34m[\u001b[0m\u001b[0;34m]\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n", "\u001b[0;31mValueError\u001b[0m: No tables found" ] } ], "source": [ "# Y ahora ésto...\n", "url = \"https://www.marca.com/futbol/primera-division/clasificacion.html\"\n", "html = requests.get(url).content\n", "df_list = pd.read_html(html)\n", "df = df_list[-1]" ] }, { "cell_type": "markdown", "id": "b175ac86-a677-4112-86af-f7756ab54b2e", "metadata": {}, "source": [ "Esta última url se genera de manera dinámica, frente a la de resultados históricos que es estática. Necesitamos otro método para acceder a ese contenido." ] }, { "cell_type": "markdown", "id": "bd699cf0-6209-4fd3-9858-ad30962346dd", "metadata": {}, "source": [ "### Parseo HTML con BeautifulSoup\n", "A través de BeautifulSoup, podemos parsear HTML a XML. Ésto nos permite navegar a través del XML como si lo hiciéramos a través de la estructura DOM de la página.\n", "Para navegar, buscaremos los elementos del XML a través de sus nombres, clases, ID's o relaciones con otros elementos (padre - hijo).\n", "\n", "Nos permite scrapear sólo web estáticas." ] }, { "cell_type": "code", "execution_count": 25, "id": "3ef6924c-5dad-475a-97bc-a1fce3db7551", "metadata": {}, "outputs": [ { "name": "stdout", "output_type": "stream", "text": [ "Requirement already satisfied: beautifulsoup4 in /home/mydoctor/anaconda3/lib/python3.8/site-packages (4.10.0)\n", "Requirement already satisfied: soupsieve>1.2 in /home/mydoctor/anaconda3/lib/python3.8/site-packages (from beautifulsoup4) (2.2.1)\n" ] } ], "source": [ "!pip install beautifulsoup4" ] }, { "cell_type": "code", "execution_count": 2, "id": "3c577d41-28a8-4b82-84e6-510daf68698e", "metadata": {}, "outputs": [], "source": [ "from bs4 import BeautifulSoup\n", "import requests" ] }, { "cell_type": "code", "execution_count": 3, "id": "60ce8b17-4909-416c-aa9e-79602ecdf76b", "metadata": {}, "outputs": [ { "name": "stdout", "output_type": "stream", "text": [ "b'\\n\n", "soup.select_one('.temp')" ] }, { "cell_type": "code", "execution_count": 6, "id": "0d6b0d59-3484-4287-b3fa-9ae4871ae819", "metadata": {}, "outputs": [], "source": [ "# Para extraer un elemento cuyo ID sea temp \n", "soup.select_one('#temp')\n", "# Siempre que podamos, intentar acceder a los elementos de la página a través de un ID\n" ] }, { "cell_type": "code", "execution_count": 7, "id": "c5e2f169-ec70-443e-b5dc-b73d94f28c88", "metadata": {}, "outputs": [], "source": [ "#Para extraer un elemento cuyas clases seas \"temp\" y \"example\" \n", "soup.select_one('.temp.example')" ] }, { "cell_type": "code", "execution_count": 8, "id": "f58ce352-03f3-4802-aee0-03ec65d5846a", "metadata": {}, "outputs": [], "source": [ "#Para extraer un elemento anidado a otro, por ejemplo elemento 'a' anidado con la clase temp
\n", "soup.select_one('.temp a')" ] }, { "cell_type": "code", "execution_count": 9, "id": "67b5102b-44f7-4d95-bb51-287cebc6df23", "metadata": { "scrolled": true, "tags": [] }, "outputs": [ { "data": { "text/plain": [ "\n", "\n", "
\n", "
\n", "
\n", "\n", "
\n", "\n", "
\n", "
\n", "
\n", "
\n", "
\n", "
\n", "\n", "
\n", "
\n", "\n", "

Save for Later

\n", "
\n", "
\n", "

AllSides members can bookmark any article and read it later. Save this article by becoming a member today!

\n", "
\n", "
\n", "
\n", "
\n", "

Join AllSides to read, share \n", " and understand all perspectives of today's news and issues. \n", "

\n", "Learn more »\n", "
\n", "
\n", "
\n", "Join Now\n", "

Already on AllSides? \n", " Log In\n", "

\n", "
\n", "
\n", "
\n", "\n", "\n", "
\n", "
\n", "

\"AllSides\"

\n", "\n", "
\n", "\n", "\n", "\n", "
\n", "\n", "
\n", "
\n", "\n", "\n", "\n", "\n", "
\n", "Donate\n", "Join\n", "\n", "
\n", "Don't be fooled by
media bias & misinformation.
\n", "
\n", "\n", "
\n", "
\n", "
\n", "
\n", "

Media Bias

\n", "\n", "
\n", "
\n", "
\n", "
\n", "
\n", "
\n", "
\n", "
\n", "
\n", "
\n", "\n", "
\n", "

Support Media Bias Research

\n", "

AllSides conducts regular media bias research, and our ratings inform our balanced newsfeed.

\n", "

If you think media bias transparency is important, make a contribution today to support our work.

\n", "
\n", "
\n", "

Support Media Bias Research

\n", "

If you think media bias transparency is important, help fund our work by becoming a Sustaining Member:

\n", "

Help fund our bias ratings and research. Become a Sustaining Member today.

\n", "
\n", "$5\n", "$8\n", "$20\n", "Other\n", "
\n", "

Or make a one-time contribution without committing to a membership.

\n", "
\n", "
\n", "
\n", "
\n", "

Media Bias Ratings

\n", "
\n", "
\n", "\n", "
\n", "

Everyone is biased — and that's okay. But hidden media bias misleads, manipulates and divides us. AllSides Media Bias Ratings make media bias transparent, helping you to easily identify different perspectives so you can get the full picture and think for yourself.

\n", "
\n", "
\n", "
\n", "
\n", "

Top outlets appear in our chart, but we've rated over 800 sources.

\n", "
\n", "\n", "
\n", "
\n", "
\n", "

By making the political leanings of hundreds of media sources transparent, AllSides frees people from one-sided filter bubbles so they can better understand the world — and each other.

\n", "

Knowing the political bias of media outlets allows you to consume a balanced news diet and avoid manipulation and fake news.

\n", "

Don't miss The AllSides Fact Check Bias Chart™, which reveals the bias of top fact checkers such as Snopes, Politifact, FactCheck.org and more.

\n", "
\n", "\n", "
\n", "
\n", "

We provide separate bias ratings for news and editorial/opinion content for a number of outlets. Unless otherwise noted, all bias ratings are based on online, written content, not broadcast, TV, or radio content. Our ratings are fluid and subject to change over time as new information is gathered and biases change. To see the ratings in action, visit our balanced newsfeed.

\n", "\n", "
\n", "

Get the AllSides Mobile App

\n", "

Balanced news on the go. Available for download on iOS and Android.

\n", "

\n", "\n", "\n", "

\n", "
\n", "\n", "
\n", "\n", "

How AllSides Rates Media Bias

\n", "

AllSides uses multipartisan, scientific analysis to rate bias. Our methodology is scientific, but each individual will have a subjective opinion of the bias of any given outlet. We reflect the average view of Americans, not one individual.

\n", "

We use multiple methods to rate media bias, including Editorial Reviews, Blind Bias Surveys, independent reviews, and third party research.

\n", "
\n", "\n", "

What the Ratings Mean

\n", "
\n", "
\n", "

Learn what it means for an outlet to be Left, Lean Left, Center, Lean Right, Right, or Mixed.

\n", "

Center doesn't mean better! A Center outlet may still omit important perspectives, or run individual articles that display bias, while not displaying a lot of predictable bias frequently. Read news across the spectrum to get the full picture.

\n", "
\n", "\n", "
\n", "
\n", "
\n", "
\n", "

AllSides Media Bias Ratings

\n", "
\n", "
\n", "

Submit a source. Before contacting us, please browse all of our ratings to ensure we haven’t already rated the source. Still don’t see it? Email us.

\n", "

Improve our ratings. Click agree or disagree below to give feedback. Community votes don't determine our ratings, but act as valuable feedback that a rating may need review.

\n", "
\n", "\n", "
\n", "\n", "\n", "
\n", "
\n", "
\n", "
\n", "
\n", "
\n", "
\n", "
\n", "
\n", "
\n", "\n", "
\n", "\n", "
\n", "
\n", " \n", "
\n", "
\n", " \n", "
\n", "
\n", " \n", "
\n", "
\n", " \n", "
\n", "
\n", "
\n", "
\n", "\n", "
\n", "
\n", " \n", "
\n", "
\n", " \n", "
\n", "
\n", " \n", "
\n", "
\n", " \n", "
\n", "
\n", "
\n", "
\n", "\n", "
\n", "
\n", "\n", "
\n", "
\n", "
\n", "
\n", "
\n", "
\n", "
\n", "
\n", "
\n", "
\n", "
\n", "\n", "\n", "\n", "\n", "\n", "\n", "\n", "\n", "\n", "\n", "\n", "\n", "\n", "\n", "\n", "\n", "\n", "\n", "\n", "\n", "\n", "\n", "\n", "\n", "\n", "\n", "\n", "\n", "\n", "\n", "\n", "\n", "\n", "\n", "\n", "\n", "\n", "\n", "\n", "\n", "\n", "\n", "\n", "\n", "\n", "\n", "\n", "\n", "\n", "\n", "\n", "\n", "\n", "\n", "\n", "\n", "\n", "\n", "\n", "\n", "\n", "\n", "\n", "\n", "\n", "\n", "\n", "\n", "\n", "\n", "\n", "\n", "\n", "\n", "\n", "\n", "\n", "\n", "\n", "\n", "\n", "\n", "\n", "\n", "\n", "\n", "\n", "\n", "\n", "\n", "\n", "\n", "\n", "\n", "\n", "\n", "\n", "\n", "\n", "\n", "\n", "\n", "\n", "\n", "\n", "\n", "\n", "\n", "\n", "\n", "\n", "\n", "\n", "\n", "\n", "\n", "\n", "\n", "\n", "\n", "\n", "\n", "\n", "\n", "\n", "\n", "\n", "\n", "\n", "\n", "\n", "\n", "\n", "\n", "\n", "\n", "\n", "\n", "\n", "\n", "\n", "\n", "\n", "\n", "\n", "\n", "\n", "\n", "\n", "\n", "\n", "\n", "\n", "\n", "\n", "\n", "\n", "\n", "\n", "\n", "\n", "\n", "\n", "\n", "\n", "\n", "\n", "\n", "\n", "\n", "\n", "\n", "\n", "\n", "\n", "\n", "\n", "\n", "\n", "\n", "\n", "\n", "\n", "\n", "\n", "\n", "\n", "\n", "\n", "\n", "\n", "\n", "\n", "\n", "\n", "\n", "\n", "\n", "\n", "\n", "\n", "\n", "\n", "\n", "\n", "\n", "\n", "\n", "\n", "\n", "\n", "\n", "\n", "\n", "\n", "\n", "\n", "\n", "\n", "\n", "\n", "\n", "\n", "\n", "\n", "\n", "\n", "\n", "\n", "\n", "\n", "\n", "\n", "\n", "\n", "\n", "\n", "\n", "\n", "\n", "\n", "\n", "\n", "\n", "\n", "\n", "\n", "\n", "\n", "\n", "\n", "\n", "\n", "\n", "\n", "\n", "\n", "\n", "\n", "\n", "\n", "\n", "\n", "\n", "\n", "\n", "\n", "\n", "\n", "\n", "\n", "\n", "\n", "\n", "\n", "\n", "\n", "\n", "\n", "\n", "\n", "\n", "\n", "\n", "\n", "\n", "\n", "\n", "\n", "\n", "\n", "\n", "\n", "\n", "\n", "\n", "\n", "\n", "\n", "\n", "\n", "\n", "\n", "\n", "\n", "\n", "\n", "\n", "\n", "\n", "\n", "
\n", " News Source \n", " AllSides Bias Rating \n", " What do you think? \n", " Community feedback (biased, not normalized)
\n", "ABC News (Online) \n", "\"AllSides \n", "
\n", "
\n", "
\n", "36820/18558\n", "
\n", "
\n", "
\n", "
\n", "

How do you think the bias of this source should be rated?

\n", "
\n", "
\n", "\n", "
\n", "
\n", "
\n", "\n", "
\n", "\n", "\n", "
To prevent automated spam submissions leave this field empty.
\n", "
\n", "
\n", "

\n", "
\n", "
\n", "
\n", "
\n", "
\n", "36820/18558\n", "
\n", "
\n", "
\n", "
\n", "AlterNet \n", "\"AllSides \n", "
\n", "
\n", "
\n", "14432/3158\n", "
\n", "
\n", "
\n", "
\n", "

How do you think the bias of this source should be rated?

\n", "
\n", "
\n", "\n", "
\n", "
\n", "
\n", "\n", "
\n", "\n", "\n", "
To prevent automated spam submissions leave this field empty.
\n", "
\n", "
\n", "

\n", "
\n", "
\n", "
\n", "
\n", "
\n", "14432/3158\n", "
\n", "
\n", "
\n", "
\n", "Associated Press \n", "\"AllSides \n", "
\n", "
\n", "
\n", "27946/21821\n", "
\n", "
\n", "
\n", "
\n", "

How do you think the bias of this source should be rated?

\n", "
\n", "
\n", "\n", "
\n", "
\n", "
\n", "\n", "
\n", "\n", "\n", "
To prevent automated spam submissions leave this field empty.
\n", "
\n", "
\n", "

\n", "
\n", "
\n", "
\n", "
\n", "
\n", "27946/21821\n", "
\n", "
\n", "
\n", "
\n", "Axios \n", "\"AllSides \n", "
\n", "
\n", "
\n", "6663/7172\n", "
\n", "
\n", "
\n", "
\n", "

How do you think the bias of this source should be rated?

\n", "
\n", "
\n", "\n", "
\n", "
\n", "
\n", "\n", "
\n", "\n", "\n", "
To prevent automated spam submissions leave this field empty.
\n", "
\n", "
\n", "

\n", "
\n", "
\n", "
\n", "
\n", "
\n", "6663/7172\n", "
\n", "
\n", "
\n", "
\n", "BBC News \n", "\"AllSides \n", "
\n", "
\n", "
\n", "30429/26136\n", "
\n", "
\n", "
\n", "
\n", "

How do you think the bias of this source should be rated?

\n", "
\n", "
\n", "\n", "
\n", "
\n", "
\n", "\n", "
\n", "\n", "\n", "
To prevent automated spam submissions leave this field empty.
\n", "
\n", "
\n", "

\n", "
\n", "
\n", "
\n", "
\n", "
\n", "30429/26136\n", "
\n", "
\n", "
\n", "
\n", "Bloomberg \n", "\"AllSides \n", "
\n", "
\n", "
\n", "16528/21651\n", "
\n", "
\n", "
\n", "
\n", "

How do you think the bias of this source should be rated?

\n", "
\n", "
\n", "\n", "
\n", "
\n", "
\n", "\n", "
\n", "\n", "\n", "
To prevent automated spam submissions leave this field empty.
\n", "
\n", "
\n", "

\n", "
\n", "
\n", "
\n", "
\n", "
\n", "16528/21651\n", "
\n", "
\n", "
\n", "
\n", "Breitbart News \n", "\"AllSides \n", "
\n", "
\n", "
\n", "40629/11439\n", "
\n", "
\n", "
\n", "
\n", "

How do you think the bias of this source should be rated?

\n", "
\n", "
\n", "\n", "
\n", "
\n", "
\n", "\n", "
\n", "\n", "\n", "
To prevent automated spam submissions leave this field empty.
\n", "
\n", "
\n", "

\n", "
\n", "
\n", "
\n", "
\n", "
\n", "40629/11439\n", "
\n", "
\n", "
\n", "
\n", "BuzzFeed News \n", "\"AllSides \n", "
\n", "
\n", "
\n", "25760/9402\n", "
\n", "
\n", "
\n", "
\n", "

How do you think the bias of this source should be rated?

\n", "
\n", "
\n", "\n", "
\n", "
\n", "
\n", "\n", "
\n", "\n", "\n", "
To prevent automated spam submissions leave this field empty.
\n", "
\n", "
\n", "

\n", "
\n", "
\n", "
\n", "
\n", "
\n", "25760/9402\n", "
\n", "
\n", "
\n", "
\n", "CBS News (Online) \n", "\"AllSides \n", "
\n", "
\n", "
\n", "19605/12502\n", "
\n", "
\n", "
\n", "
\n", "

How do you think the bias of this source should be rated?

\n", "
\n", "
\n", "\n", "
\n", "
\n", "
\n", "\n", "
\n", "\n", "\n", "
To prevent automated spam submissions leave this field empty.
\n", "
\n", "
\n", "

\n", "
\n", "
\n", "
\n", "
\n", "
\n", "19605/12502\n", "
\n", "
\n", "
\n", "
\n", "Christian Science Monitor \n", "\"AllSides \n", "
\n", "
\n", "
\n", "16061/19652\n", "
\n", "
\n", "
\n", "
\n", "

How do you think the bias of this source should be rated?

\n", "
\n", "
\n", "\n", "
\n", "
\n", "
\n", "\n", "
\n", "\n", "\n", "
To prevent automated spam submissions leave this field empty.
\n", "
\n", "
\n", "

\n", "
\n", "
\n", "
\n", "
\n", "
\n", "16061/19652\n", "
\n", "
\n", "
\n", "
\n", "CNN (Online News) \n", "\"AllSides \n", "
\n", "
\n", "
\n", "53113/48559\n", "
\n", "
\n", "
\n", "
\n", "

How do you think the bias of this source should be rated?

\n", "
\n", "
\n", "\n", "
\n", "
\n", "
\n", "\n", "
\n", "\n", "\n", "
To prevent automated spam submissions leave this field empty.
\n", "
\n", "
\n", "

\n", "
\n", "
\n", "
\n", "
\n", "
\n", "53113/48559\n", "
\n", "
\n", "
\n", "
\n", "CNN (Opinion) \n", "\"AllSides \n", "
\n", "
\n", "
\n", "35060/7740\n", "
\n", "
\n", "
\n", "
\n", "

How do you think the bias of this source should be rated?

\n", "
\n", "
\n", "\n", "
\n", "
\n", "
\n", "\n", "
\n", "\n", "\n", "
To prevent automated spam submissions leave this field empty.
\n", "
\n", "
\n", "

\n", "
\n", "
\n", "
\n", "
\n", "
\n", "35060/7740\n", "
\n", "
\n", "
\n", "
\n", "Daily Beast \n", "\"AllSides \n", "
\n", "
\n", "
\n", "20245/6297\n", "
\n", "
\n", "
\n", "
\n", "

How do you think the bias of this source should be rated?

\n", "
\n", "
\n", "\n", "
\n", "
\n", "
\n", "\n", "
\n", "\n", "\n", "
To prevent automated spam submissions leave this field empty.
\n", "
\n", "
\n", "

\n", "
\n", "
\n", "
\n", "
\n", "
\n", "20245/6297\n", "
\n", "
\n", "
\n", "
\n", "Daily Mail \n", "\"AllSides \n", "
\n", "
\n", "
\n", "12503/6816\n", "
\n", "
\n", "
\n", "
\n", "

How do you think the bias of this source should be rated?

\n", "
\n", "
\n", "\n", "
\n", "
\n", "
\n", "\n", "
\n", "\n", "\n", "
To prevent automated spam submissions leave this field empty.
\n", "
\n", "
\n", "

\n", "
\n", "
\n", "
\n", "
\n", "
\n", "12503/6816\n", "
\n", "
\n", "
\n", "
\n", "Democracy Now \n", "\"AllSides \n", "
\n", "
\n", "
\n", "13804/3188\n", "
\n", "
\n", "
\n", "
\n", "

How do you think the bias of this source should be rated?

\n", "
\n", "
\n", "\n", "
\n", "
\n", "
\n", "\n", "
\n", "\n", "\n", "
To prevent automated spam submissions leave this field empty.
\n", "
\n", "
\n", "

\n", "
\n", "
\n", "
\n", "
\n", "
\n", "13804/3188\n", "
\n", "
\n", "
\n", "
\n", "Forbes \n", "\"AllSides \n", "
\n", "
\n", "
\n", "14329/9059\n", "
\n", "
\n", "
\n", "
\n", "

How do you think the bias of this source should be rated?

\n", "
\n", "
\n", "\n", "
\n", "
\n", "
\n", "\n", "
\n", "\n", "\n", "
To prevent automated spam submissions leave this field empty.
\n", "
\n", "
\n", "

\n", "
\n", "
\n", "
\n", "
\n", "
\n", "14329/9059\n", "
\n", "
\n", "
\n", "
\n", "Fox News (Online News) \n", "\"AllSides \n", "
\n", "
\n", "
\n", "43738/48774\n", "
\n", "
\n", "
\n", "
\n", "

How do you think the bias of this source should be rated?

\n", "
\n", "
\n", "\n", "
\n", "
\n", "
\n", "\n", "
\n", "\n", "\n", "
To prevent automated spam submissions leave this field empty.
\n", "
\n", "
\n", "

\n", "
\n", "
\n", "
\n", "
\n", "
\n", "43738/48774\n", "
\n", "
\n", "
\n", "
\n", "Fox News (Opinion) \n", "\"AllSides \n", "
\n", "
\n", "
\n", "29609/6877\n", "
\n", "
\n", "
\n", "
\n", "

How do you think the bias of this source should be rated?

\n", "
\n", "
\n", "\n", "
\n", "
\n", "
\n", "\n", "
\n", "\n", "\n", "
To prevent automated spam submissions leave this field empty.
\n", "
\n", "
\n", "

\n", "
\n", "
\n", "
\n", "
\n", "
\n", "29609/6877\n", "
\n", "
\n", "
\n", "
\n", "HuffPost \n", "\"AllSides \n", "
\n", "
\n", "
\n", "36265/22414\n", "
\n", "
\n", "
\n", "
\n", "

How do you think the bias of this source should be rated?

\n", "
\n", "
\n", "\n", "
\n", "
\n", "
\n", "\n", "
\n", "\n", "\n", "
To prevent automated spam submissions leave this field empty.
\n", "
\n", "
\n", "

\n", "
\n", "
\n", "
\n", "
\n", "
\n", "36265/22414\n", "
\n", "
\n", "
\n", "
\n", "Mother Jones \n", "\"AllSides \n", "
\n", "
\n", "
\n", "15852/2354\n", "
\n", "
\n", "
\n", "
\n", "

How do you think the bias of this source should be rated?

\n", "
\n", "
\n", "\n", "
\n", "
\n", "
\n", "\n", "
\n", "\n", "\n", "
To prevent automated spam submissions leave this field empty.
\n", "
\n", "
\n", "

\n", "
\n", "
\n", "
\n", "
\n", "
\n", "15852/2354\n", "
\n", "
\n", "
\n", "
\n", "MSNBC \n", "\"AllSides \n", "
\n", "
\n", "
\n", "22074/5663\n", "
\n", "
\n", "
\n", "
\n", "

How do you think the bias of this source should be rated?

\n", "
\n", "
\n", "\n", "
\n", "
\n", "
\n", "\n", "
\n", "\n", "\n", "
To prevent automated spam submissions leave this field empty.
\n", "
\n", "
\n", "

\n", "
\n", "
\n", "
\n", "
\n", "
\n", "22074/5663\n", "
\n", "
\n", "
\n", "
\n", "National Review \n", "\"AllSides \n", "
\n", "
\n", "
\n", "19487/7970\n", "
\n", "
\n", "
\n", "
\n", "

How do you think the bias of this source should be rated?

\n", "
\n", "
\n", "\n", "
\n", "
\n", "
\n", "\n", "
\n", "\n", "\n", "
To prevent automated spam submissions leave this field empty.
\n", "
\n", "
\n", "

\n", "
\n", "
\n", "
\n", "
\n", "
\n", "19487/7970\n", "
\n", "
\n", "
\n", "
\n", "NBC News (Online) \n", "\"AllSides \n", "
\n", "
\n", "
\n", "12559/12253\n", "
\n", "
\n", "
\n", "
\n", "

How do you think the bias of this source should be rated?

\n", "
\n", "
\n", "\n", "
\n", "
\n", "
\n", "\n", "
\n", "\n", "\n", "
To prevent automated spam submissions leave this field empty.
\n", "
\n", "
\n", "

\n", "
\n", "
\n", "
\n", "
\n", "
\n", "12559/12253\n", "
\n", "
\n", "
\n", "
\n", "New York Post (News) \n", "\"AllSides \n", "
\n", "
\n", "
\n", "14941/7921\n", "
\n", "
\n", "
\n", "
\n", "

How do you think the bias of this source should be rated?

\n", "
\n", "
\n", "\n", "
\n", "
\n", "
\n", "\n", "
\n", "\n", "\n", "
To prevent automated spam submissions leave this field empty.
\n", "
\n", "
\n", "

\n", "
\n", "
\n", "
\n", "
\n", "
\n", "14941/7921\n", "
\n", "
\n", "
\n", "
\n", "New York Times (News) \n", "\"AllSides \n", "
\n", "
\n", "
\n", "29908/39740\n", "
\n", "
\n", "
\n", "
\n", "

How do you think the bias of this source should be rated?

\n", "
\n", "
\n", "\n", "
\n", "
\n", "
\n", "\n", "
\n", "\n", "\n", "
To prevent automated spam submissions leave this field empty.
\n", "
\n", "
\n", "

\n", "
\n", "
\n", "
\n", "
\n", "
\n", "29908/39740\n", "
\n", "
\n", "
\n", "
\n", "New York Times (Opinion) \n", "\"AllSides \n", "
\n", "
\n", "
\n", "15106/4123\n", "
\n", "
\n", "
\n", "
\n", "

How do you think the bias of this source should be rated?

\n", "
\n", "
\n", "\n", "
\n", "
\n", "
\n", "\n", "
\n", "\n", "\n", "
To prevent automated spam submissions leave this field empty.
\n", "
\n", "
\n", "

\n", "
\n", "
\n", "
\n", "
\n", "
\n", "15106/4123\n", "
\n", "
\n", "
\n", "
\n", "Newsweek \n", "\"AllSides \n", "
\n", "
\n", "
\n", "3598/5745\n", "
\n", "
\n", "
\n", "
\n", "

How do you think the bias of this source should be rated?

\n", "
\n", "
\n", "\n", "
\n", "
\n", "
\n", "\n", "
\n", "\n", "\n", "
To prevent automated spam submissions leave this field empty.
\n", "
\n", "
\n", "

\n", "
\n", "
\n", "
\n", "
\n", "
\n", "3598/5745\n", "
\n", "
\n", "
\n", "
\n", "NPR (Online News) \n", "\"AllSides \n", "
\n", "
\n", "
\n", "32462/31626\n", "
\n", "
\n", "
\n", "
\n", "

How do you think the bias of this source should be rated?

\n", "
\n", "
\n", "\n", "
\n", "
\n", "
\n", "\n", "
\n", "\n", "\n", "
To prevent automated spam submissions leave this field empty.
\n", "
\n", "
\n", "

\n", "
\n", "
\n", "
\n", "
\n", "
\n", "32462/31626\n", "
\n", "
\n", "
\n", "
\n", "NPR (Opinion) \n", "\"AllSides \n", "
\n", "
\n", "
\n", "8846/10096\n", "
\n", "
\n", "
\n", "
\n", "

How do you think the bias of this source should be rated?

\n", "
\n", "
\n", "\n", "
\n", "
\n", "
\n", "\n", "
\n", "\n", "\n", "
To prevent automated spam submissions leave this field empty.
\n", "
\n", "
\n", "

\n", "
\n", "
\n", "
\n", "
\n", "
\n", "8846/10096\n", "
\n", "
\n", "
\n", "
\n", "Politico \n", "\"AllSides \n", "
\n", "
\n", "
\n", "23899/30764\n", "
\n", "
\n", "
\n", "
\n", "

How do you think the bias of this source should be rated?

\n", "
\n", "
\n", "\n", "
\n", "
\n", "
\n", "\n", "
\n", "\n", "\n", "
To prevent automated spam submissions leave this field empty.
\n", "
\n", "
\n", "

\n", "
\n", "
\n", "
\n", "
\n", "
\n", "23899/30764\n", "
\n", "
\n", "
\n", "
\n", "Reason \n", "\"AllSides \n", "
\n", "
\n", "
\n", "9719/5930\n", "
\n", "
\n", "
\n", "
\n", "

How do you think the bias of this source should be rated?

\n", "
\n", "
\n", "\n", "
\n", "
\n", "
\n", "\n", "
\n", "\n", "\n", "
To prevent automated spam submissions leave this field empty.
\n", "
\n", "
\n", "

\n", "
\n", "
\n", "
\n", "
\n", "
\n", "9719/5930\n", "
\n", "
\n", "
\n", "
\n", "Reuters \n", "\"AllSides \n", "
\n", "
\n", "
\n", "18851/10712\n", "
\n", "
\n", "
\n", "
\n", "

How do you think the bias of this source should be rated?

\n", "
\n", "
\n", "\n", "
\n", "
\n", "
\n", "\n", "
\n", "\n", "\n", "
To prevent automated spam submissions leave this field empty.
\n", "
\n", "
\n", "

\n", "
\n", "
\n", "
\n", "
\n", "
\n", "18851/10712\n", "
\n", "
\n", "
\n", "
\n", "Slate \n", "\"AllSides \n", "
\n", "
\n", "
\n", "9950/3604\n", "
\n", "
\n", "
\n", "
\n", "

How do you think the bias of this source should be rated?

\n", "
\n", "
\n", "\n", "
\n", "
\n", "
\n", "\n", "
\n", "\n", "\n", "
To prevent automated spam submissions leave this field empty.
\n", "
\n", "
\n", "

\n", "
\n", "
\n", "
\n", "
\n", "
\n", "9950/3604\n", "
\n", "
\n", "
\n", "
\n", "The American Spectator \n", "\"AllSides \n", "
\n", "
\n", "
\n", "12212/4261\n", "
\n", "
\n", "
\n", "
\n", "

How do you think the bias of this source should be rated?

\n", "
\n", "
\n", "\n", "
\n", "
\n", "
\n", "\n", "
\n", "\n", "\n", "
To prevent automated spam submissions leave this field empty.
\n", "
\n", "
\n", "

\n", "
\n", "
\n", "
\n", "
\n", "
\n", "12212/4261\n", "
\n", "
\n", "
\n", "
\n", "The Atlantic \n", "\"AllSides \n", "
\n", "
\n", "
\n", "15167/8384\n", "
\n", "
\n", "
\n", "
\n", "

How do you think the bias of this source should be rated?

\n", "
\n", "
\n", "\n", "
\n", "
\n", "
\n", "\n", "
\n", "\n", "\n", "
To prevent automated spam submissions leave this field empty.
\n", "
\n", "
\n", "

\n", "
\n", "
\n", "
\n", "
\n", "
\n", "15167/8384\n", "
\n", "
\n", "
\n", "
\n", "The Daily Caller \n", "\"AllSides \n", "
\n", "
\n", "
\n", "10314/4117\n", "
\n", "
\n", "
\n", "
\n", "

How do you think the bias of this source should be rated?

\n", "
\n", "
\n", "\n", "
\n", "
\n", "
\n", "\n", "
\n", "\n", "\n", "
To prevent automated spam submissions leave this field empty.
\n", "
\n", "
\n", "

\n", "
\n", "
\n", "
\n", "
\n", "
\n", "10314/4117\n", "
\n", "
\n", "
\n", "
\n", "The Daily Wire \n", "\"AllSides \n", "
\n", "
\n", "
\n", "11239/4030\n", "
\n", "
\n", "
\n", "
\n", "

How do you think the bias of this source should be rated?

\n", "
\n", "
\n", "\n", "
\n", "
\n", "
\n", "\n", "
\n", "\n", "\n", "
To prevent automated spam submissions leave this field empty.
\n", "
\n", "
\n", "

\n", "
\n", "
\n", "
\n", "
\n", "
\n", "11239/4030\n", "
\n", "
\n", "
\n", "
\n", "The Economist \n", "\"AllSides \n", "
\n", "
\n", "
\n", "6174/10483\n", "
\n", "
\n", "
\n", "
\n", "

How do you think the bias of this source should be rated?

\n", "
\n", "
\n", "\n", "
\n", "
\n", "
\n", "\n", "
\n", "\n", "\n", "
To prevent automated spam submissions leave this field empty.
\n", "
\n", "
\n", "

\n", "
\n", "
\n", "
\n", "
\n", "
\n", "6174/10483\n", "
\n", "
\n", "
\n", "
\n", "The Epoch Times \n", "\"AllSides \n", "
\n", "
\n", "
\n", "11763/5857\n", "
\n", "
\n", "
\n", "
\n", "

How do you think the bias of this source should be rated?

\n", "
\n", "
\n", "\n", "
\n", "
\n", "
\n", "\n", "
\n", "\n", "\n", "
To prevent automated spam submissions leave this field empty.
\n", "
\n", "
\n", "

\n", "
\n", "
\n", "
\n", "
\n", "
\n", "11763/5857\n", "
\n", "
\n", "
\n", "
\n", "The Federalist \n", "\"AllSides \n", "
\n", "
\n", "
\n", "9502/2926\n", "
\n", "
\n", "
\n", "
\n", "

How do you think the bias of this source should be rated?

\n", "
\n", "
\n", "\n", "
\n", "
\n", "
\n", "\n", "
\n", "\n", "\n", "
To prevent automated spam submissions leave this field empty.
\n", "
\n", "
\n", "

\n", "
\n", "
\n", "
\n", "
\n", "
\n", "9502/2926\n", "
\n", "
\n", "
\n", "
\n", "The Guardian \n", "\"AllSides \n", "
\n", "
\n", "
\n", "14113/8671\n", "
\n", "
\n", "
\n", "
\n", "

How do you think the bias of this source should be rated?

\n", "
\n", "
\n", "\n", "
\n", "
\n", "
\n", "\n", "
\n", "\n", "\n", "
To prevent automated spam submissions leave this field empty.
\n", "
\n", "
\n", "

\n", "
\n", "
\n", "
\n", "
\n", "
\n", "14113/8671\n", "
\n", "
\n", "
\n", "
\n", "The Hill \n", "\"AllSides \n", "
\n", "
\n", "
\n", "16634/22359\n", "
\n", "
\n", "
\n", "
\n", "

How do you think the bias of this source should be rated?

\n", "
\n", "
\n", "\n", "
\n", "
\n", "
\n", "\n", "
\n", "\n", "\n", "
To prevent automated spam submissions leave this field empty.
\n", "
\n", "
\n", "

\n", "
\n", "
\n", "
\n", "
\n", "
\n", "16634/22359\n", "
\n", "
\n", "
\n", "
\n", "The Intercept \n", "\"AllSides \n", "
\n", "
\n", "
\n", "5804/1729\n", "
\n", "
\n", "
\n", "
\n", "

How do you think the bias of this source should be rated?

\n", "
\n", "
\n", "\n", "
\n", "
\n", "
\n", "\n", "
\n", "\n", "\n", "
To prevent automated spam submissions leave this field empty.
\n", "
\n", "
\n", "

\n", "
\n", "
\n", "
\n", "
\n", "
\n", "5804/1729\n", "
\n", "
\n", "
\n", "
\n", "The New Yorker \n", "\"AllSides \n", "
\n", "
\n", "
\n", "9891/2398\n", "
\n", "
\n", "
\n", "
\n", "

How do you think the bias of this source should be rated?

\n", "
\n", "
\n", "\n", "
\n", "
\n", "
\n", "\n", "
\n", "\n", "\n", "
To prevent automated spam submissions leave this field empty.
\n", "
\n", "
\n", "

\n", "
\n", "
\n", "
\n", "
\n", "
\n", "9891/2398\n", "
\n", "
\n", "
\n", "
\n", "TheBlaze.com \n", "\"AllSides \n", "
\n", "
\n", "
\n", "101913/81551\n", "
\n", "
\n", "
\n", "
\n", "

How do you think the bias of this source should be rated?

\n", "
\n", "
\n", "\n", "
\n", "
\n", "
\n", "\n", "
\n", "\n", "\n", "
To prevent automated spam submissions leave this field empty.
\n", "
\n", "
\n", "

\n", "
\n", "
\n", "
\n", "
\n", "
\n", "101913/81551\n", "
\n", "
\n", "
\n", "
\n", "Time Magazine \n", "\"AllSides \n", "
\n", "
\n", "
\n", "9666/8138\n", "
\n", "
\n", "
\n", "
\n", "

How do you think the bias of this source should be rated?

\n", "
\n", "
\n", "\n", "
\n", "
\n", "
\n", "\n", "
\n", "\n", "\n", "
To prevent automated spam submissions leave this field empty.
\n", "
\n", "
\n", "

\n", "
\n", "
\n", "
\n", "
\n", "
\n", "9666/8138\n", "
\n", "
\n", "
\n", "
\n", "USA TODAY \n", "\"AllSides \n", "
\n", "
\n", "
\n", "18898/21151\n", "
\n", "
\n", "
\n", "
\n", "

How do you think the bias of this source should be rated?

\n", "
\n", "
\n", "\n", "
\n", "
\n", "
\n", "\n", "
\n", "\n", "\n", "
To prevent automated spam submissions leave this field empty.
\n", "
\n", "
\n", "

\n", "
\n", "
\n", "
\n", "
\n", "
\n", "18898/21151\n", "
\n", "
\n", "
\n", "
\n", "Vox \n", "\"AllSides \n", "
\n", "
\n", "
\n", "30416/15165\n", "
\n", "
\n", "
\n", "
\n", "

How do you think the bias of this source should be rated?

\n", "
\n", "
\n", "\n", "
\n", "
\n", "
\n", "\n", "
\n", "\n", "\n", "
To prevent automated spam submissions leave this field empty.
\n", "
\n", "
\n", "

\n", "
\n", "
\n", "
\n", "
\n", "
\n", "30416/15165\n", "
\n", "
\n", "
\n", "
\n", "Wall Street Journal (News) \n", "\"AllSides \n", "
\n", "
\n", "
\n", "22701/25408\n", "
\n", "
\n", "
\n", "
\n", "

How do you think the bias of this source should be rated?

\n", "
\n", "
\n", "\n", "
\n", "
\n", "
\n", "\n", "
\n", "\n", "\n", "
To prevent automated spam submissions leave this field empty.
\n", "
\n", "
\n", "

\n", "
\n", "
\n", "
\n", "
\n", "
\n", "22701/25408\n", "
\n", "
\n", "
\n", "
\n", "Wall Street Journal (Opinion) \n", "\"AllSides \n", "
\n", "
\n", "
\n", "11506/7677\n", "
\n", "
\n", "
\n", "
\n", "

How do you think the bias of this source should be rated?

\n", "
\n", "
\n", "\n", "
\n", "
\n", "
\n", "\n", "
\n", "\n", "\n", "
To prevent automated spam submissions leave this field empty.
\n", "
\n", "
\n", "

\n", "
\n", "
\n", "
\n", "
\n", "
\n", "11506/7677\n", "
\n", "
\n", "
\n", "
\n", "
\n", "\n", "
  •  
  • \n", "
  • 1 of 2
  • \n", "
  • ››
  • \n", "
\n", "
\n", "\n", "
\n", "
\n", "\"Creative
\n", "

AllSides Media Bias Ratings™ by AllSides.com are licensed under a Creative Commons Attribution-NonCommercial 4.0 International License. These ratings may be used for research or noncommercial purposes with attribution.

\n", "

For commercial use, or to request this data as a CSV or JSON file, contact us.

\n", "
\n", "
\n", "
\n", "
\n", "
\n", "
\n", "
\n", "
\n", "
\n", "
\n", "
\n", "
\n", "
\n", "
\n", "
\n", "
\n", "
\n", "\n", "\n", "\n", "\n", "\n", "\n", "\n", "\n", "\n", "\n", "\n", "\n", "\n", "\n", "\n", "\n", "\n", "\n", "\n", "\n", "\n", "\n", "\n", "\n", "\n", "" ] }, "execution_count": 9, "metadata": {}, "output_type": "execute_result" } ], "source": [ "# Para extraer una etiqueta como usaremos\n", "soup.select_one('body')\n", "\n", "# Para extraer una etiqueta como usaremos soup.select_one('a')\n", "# Buscar la etiqueta body en el código de la página y comprobar que contiene el contenido de la tabla en tbody" ] }, { "cell_type": "code", "execution_count": 10, "id": "ec195e0b-f926-47cd-8f53-6b6997f0eeb2", "metadata": { "scrolled": true, "tags": [] }, "outputs": [ { "data": { "text/plain": [ "\n", "\n", "\n", "ABC News (Online) \n", "\n", "\"AllSides \n", "\n", "
\n", "
\n", "
\n", "36820/18558\n", "
\n", "
\n", "
\n", "
\n", "

How do you think the bias of this source should be rated?

\n", "
\n", "
\n", "\n", "
\n", "
\n", "
\n", "\n", "
\n", "\n", "\n", "
To prevent automated spam submissions leave this field empty.
\n", "
\n", "
\n", "

\n", "
\n", "\n", "\n", "
\n", "
\n", "
\n", "36820/18558\n", "
\n", "
\n", "
\n", "\n", "\n", "\n", "\n", "AlterNet \n", "\n", "\"AllSides \n", "\n", "
\n", "
\n", "
\n", "14432/3158\n", "
\n", "
\n", "
\n", "
\n", "

How do you think the bias of this source should be rated?

\n", "
\n", "
\n", "\n", "
\n", "
\n", "
\n", "\n", "
\n", "\n", "\n", "
To prevent automated spam submissions leave this field empty.
\n", "
\n", "
\n", "

\n", "
\n", "\n", "\n", "
\n", "
\n", "
\n", "14432/3158\n", "
\n", "
\n", "
\n", "\n", "\n", "\n", "\n", "Associated Press \n", "\n", "\"AllSides \n", "\n", "
\n", "
\n", "
\n", "27946/21821\n", "
\n", "
\n", "
\n", "
\n", "

How do you think the bias of this source should be rated?

\n", "
\n", "
\n", "\n", "
\n", "
\n", "
\n", "\n", "
\n", "\n", "\n", "
To prevent automated spam submissions leave this field empty.
\n", "
\n", "
\n", "

\n", "
\n", "\n", "\n", "
\n", "
\n", "
\n", "27946/21821\n", "
\n", "
\n", "
\n", "\n", "\n", "\n", "\n", "Axios \n", "\n", "\"AllSides \n", "\n", "
\n", "
\n", "
\n", "6663/7172\n", "
\n", "
\n", "
\n", "
\n", "

How do you think the bias of this source should be rated?

\n", "
\n", "
\n", "\n", "
\n", "
\n", "
\n", "\n", "
\n", "\n", "\n", "
To prevent automated spam submissions leave this field empty.
\n", "
\n", "
\n", "

\n", "
\n", "\n", "\n", "
\n", "
\n", "
\n", "6663/7172\n", "
\n", "
\n", "
\n", "\n", "\n", "\n", "\n", "BBC News \n", "\n", "\"AllSides \n", "\n", "
\n", "
\n", "
\n", "30429/26136\n", "
\n", "
\n", "
\n", "
\n", "

How do you think the bias of this source should be rated?

\n", "
\n", "
\n", "\n", "
\n", "
\n", "
\n", "\n", "
\n", "\n", "\n", "
To prevent automated spam submissions leave this field empty.
\n", "
\n", "
\n", "

\n", "
\n", "\n", "\n", "
\n", "
\n", "
\n", "30429/26136\n", "
\n", "
\n", "
\n", "\n", "\n", "\n", "\n", "Bloomberg \n", "\n", "\"AllSides \n", "\n", "
\n", "
\n", "
\n", "16528/21651\n", "
\n", "
\n", "
\n", "
\n", "

How do you think the bias of this source should be rated?

\n", "
\n", "
\n", "\n", "
\n", "
\n", "
\n", "\n", "
\n", "\n", "\n", "
To prevent automated spam submissions leave this field empty.
\n", "
\n", "
\n", "

\n", "
\n", "\n", "\n", "
\n", "
\n", "
\n", "16528/21651\n", "
\n", "
\n", "
\n", "\n", "\n", "\n", "\n", "Breitbart News \n", "\n", "\"AllSides \n", "\n", "
\n", "
\n", "
\n", "40629/11439\n", "
\n", "
\n", "
\n", "
\n", "

How do you think the bias of this source should be rated?

\n", "
\n", "
\n", "\n", "
\n", "
\n", "
\n", "\n", "
\n", "\n", "\n", "
To prevent automated spam submissions leave this field empty.
\n", "
\n", "
\n", "

\n", "
\n", "\n", "\n", "
\n", "
\n", "
\n", "40629/11439\n", "
\n", "
\n", "
\n", "\n", "\n", "\n", "\n", "BuzzFeed News \n", "\n", "\"AllSides \n", "\n", "
\n", "
\n", "
\n", "25760/9402\n", "
\n", "
\n", "
\n", "
\n", "

How do you think the bias of this source should be rated?

\n", "
\n", "
\n", "\n", "
\n", "
\n", "
\n", "\n", "
\n", "\n", "\n", "
To prevent automated spam submissions leave this field empty.
\n", "
\n", "
\n", "

\n", "
\n", "\n", "\n", "
\n", "
\n", "
\n", "25760/9402\n", "
\n", "
\n", "
\n", "\n", "\n", "\n", "\n", "CBS News (Online) \n", "\n", "\"AllSides \n", "\n", "
\n", "
\n", "
\n", "19605/12502\n", "
\n", "
\n", "
\n", "
\n", "

How do you think the bias of this source should be rated?

\n", "
\n", "
\n", "\n", "
\n", "
\n", "
\n", "\n", "
\n", "\n", "\n", "
To prevent automated spam submissions leave this field empty.
\n", "
\n", "
\n", "

\n", "
\n", "\n", "\n", "
\n", "
\n", "
\n", "19605/12502\n", "
\n", "
\n", "
\n", "\n", "\n", "\n", "\n", "Christian Science Monitor \n", "\n", "\"AllSides \n", "\n", "
\n", "
\n", "
\n", "16061/19652\n", "
\n", "
\n", "
\n", "
\n", "

How do you think the bias of this source should be rated?

\n", "
\n", "
\n", "\n", "
\n", "
\n", "
\n", "\n", "
\n", "\n", "\n", "
To prevent automated spam submissions leave this field empty.
\n", "
\n", "
\n", "

\n", "
\n", "\n", "\n", "
\n", "
\n", "
\n", "16061/19652\n", "
\n", "
\n", "
\n", "\n", "\n", "\n", "\n", "CNN (Online News) \n", "\n", "\"AllSides \n", "\n", "
\n", "
\n", "
\n", "53113/48559\n", "
\n", "
\n", "
\n", "
\n", "

How do you think the bias of this source should be rated?

\n", "
\n", "
\n", "\n", "
\n", "
\n", "
\n", "\n", "
\n", "\n", "\n", "
To prevent automated spam submissions leave this field empty.
\n", "
\n", "
\n", "

\n", "
\n", "\n", "\n", "
\n", "
\n", "
\n", "53113/48559\n", "
\n", "
\n", "
\n", "\n", "\n", "\n", "\n", "CNN (Opinion) \n", "\n", "\"AllSides \n", "\n", "
\n", "
\n", "
\n", "35060/7740\n", "
\n", "
\n", "
\n", "
\n", "

How do you think the bias of this source should be rated?

\n", "
\n", "
\n", "\n", "
\n", "
\n", "
\n", "\n", "
\n", "\n", "\n", "
To prevent automated spam submissions leave this field empty.
\n", "
\n", "
\n", "

\n", "
\n", "\n", "\n", "
\n", "
\n", "
\n", "35060/7740\n", "
\n", "
\n", "
\n", "\n", "\n", "\n", "\n", "Daily Beast \n", "\n", "\"AllSides \n", "\n", "
\n", "
\n", "
\n", "20245/6297\n", "
\n", "
\n", "
\n", "
\n", "

How do you think the bias of this source should be rated?

\n", "
\n", "
\n", "\n", "
\n", "
\n", "
\n", "\n", "
\n", "\n", "\n", "
To prevent automated spam submissions leave this field empty.
\n", "
\n", "
\n", "

\n", "
\n", "\n", "\n", "
\n", "
\n", "
\n", "20245/6297\n", "
\n", "
\n", "
\n", "\n", "\n", "\n", "\n", "Daily Mail \n", "\n", "\"AllSides \n", "\n", "
\n", "
\n", "
\n", "12503/6816\n", "
\n", "
\n", "
\n", "
\n", "

How do you think the bias of this source should be rated?

\n", "
\n", "
\n", "\n", "
\n", "
\n", "
\n", "\n", "
\n", "\n", "\n", "
To prevent automated spam submissions leave this field empty.
\n", "
\n", "
\n", "

\n", "
\n", "\n", "\n", "
\n", "
\n", "
\n", "12503/6816\n", "
\n", "
\n", "
\n", "\n", "\n", "\n", "\n", "Democracy Now \n", "\n", "\"AllSides \n", "\n", "
\n", "
\n", "
\n", "13804/3188\n", "
\n", "
\n", "
\n", "
\n", "

How do you think the bias of this source should be rated?

\n", "
\n", "
\n", "\n", "
\n", "
\n", "
\n", "\n", "
\n", "\n", "\n", "
To prevent automated spam submissions leave this field empty.
\n", "
\n", "
\n", "

\n", "
\n", "\n", "\n", "
\n", "
\n", "
\n", "13804/3188\n", "
\n", "
\n", "
\n", "\n", "\n", "\n", "\n", "Forbes \n", "\n", "\"AllSides \n", "\n", "
\n", "
\n", "
\n", "14329/9059\n", "
\n", "
\n", "
\n", "
\n", "

How do you think the bias of this source should be rated?

\n", "
\n", "
\n", "\n", "
\n", "
\n", "
\n", "\n", "
\n", "\n", "\n", "
To prevent automated spam submissions leave this field empty.
\n", "
\n", "
\n", "

\n", "
\n", "\n", "\n", "
\n", "
\n", "
\n", "14329/9059\n", "
\n", "
\n", "
\n", "\n", "\n", "\n", "\n", "Fox News (Online News) \n", "\n", "\"AllSides \n", "\n", "
\n", "
\n", "
\n", "43738/48774\n", "
\n", "
\n", "
\n", "
\n", "

How do you think the bias of this source should be rated?

\n", "
\n", "
\n", "\n", "
\n", "
\n", "
\n", "\n", "
\n", "\n", "\n", "
To prevent automated spam submissions leave this field empty.
\n", "
\n", "
\n", "

\n", "
\n", "\n", "\n", "
\n", "
\n", "
\n", "43738/48774\n", "
\n", "
\n", "
\n", "\n", "\n", "\n", "\n", "Fox News (Opinion) \n", "\n", "\"AllSides \n", "\n", "
\n", "
\n", "
\n", "29609/6877\n", "
\n", "
\n", "
\n", "
\n", "

How do you think the bias of this source should be rated?

\n", "
\n", "
\n", "\n", "
\n", "
\n", "
\n", "\n", "
\n", "\n", "\n", "
To prevent automated spam submissions leave this field empty.
\n", "
\n", "
\n", "

\n", "
\n", "\n", "\n", "
\n", "
\n", "
\n", "29609/6877\n", "
\n", "
\n", "
\n", "\n", "\n", "\n", "\n", "HuffPost \n", "\n", "\"AllSides \n", "\n", "
\n", "
\n", "
\n", "36265/22414\n", "
\n", "
\n", "
\n", "
\n", "

How do you think the bias of this source should be rated?

\n", "
\n", "
\n", "\n", "
\n", "
\n", "
\n", "\n", "
\n", "\n", "\n", "
To prevent automated spam submissions leave this field empty.
\n", "
\n", "
\n", "

\n", "
\n", "\n", "\n", "
\n", "
\n", "
\n", "36265/22414\n", "
\n", "
\n", "
\n", "\n", "\n", "\n", "\n", "Mother Jones \n", "\n", "\"AllSides \n", "\n", "
\n", "
\n", "
\n", "15852/2354\n", "
\n", "
\n", "
\n", "
\n", "

How do you think the bias of this source should be rated?

\n", "
\n", "
\n", "\n", "
\n", "
\n", "
\n", "\n", "
\n", "\n", "\n", "
To prevent automated spam submissions leave this field empty.
\n", "
\n", "
\n", "

\n", "
\n", "\n", "\n", "
\n", "
\n", "
\n", "15852/2354\n", "
\n", "
\n", "
\n", "\n", "\n", "\n", "\n", "MSNBC \n", "\n", "\"AllSides \n", "\n", "
\n", "
\n", "
\n", "22074/5663\n", "
\n", "
\n", "
\n", "
\n", "

How do you think the bias of this source should be rated?

\n", "
\n", "
\n", "\n", "
\n", "
\n", "
\n", "\n", "
\n", "\n", "\n", "
To prevent automated spam submissions leave this field empty.
\n", "
\n", "
\n", "

\n", "
\n", "\n", "\n", "
\n", "
\n", "
\n", "22074/5663\n", "
\n", "
\n", "
\n", "\n", "\n", "\n", "\n", "National Review \n", "\n", "\"AllSides \n", "\n", "
\n", "
\n", "
\n", "19487/7970\n", "
\n", "
\n", "
\n", "
\n", "

How do you think the bias of this source should be rated?

\n", "
\n", "
\n", "\n", "
\n", "
\n", "
\n", "\n", "
\n", "\n", "\n", "
To prevent automated spam submissions leave this field empty.
\n", "
\n", "
\n", "

\n", "
\n", "\n", "\n", "
\n", "
\n", "
\n", "19487/7970\n", "
\n", "
\n", "
\n", "\n", "\n", "\n", "\n", "NBC News (Online) \n", "\n", "\"AllSides \n", "\n", "
\n", "
\n", "
\n", "12559/12253\n", "
\n", "
\n", "
\n", "
\n", "

How do you think the bias of this source should be rated?

\n", "
\n", "
\n", "\n", "
\n", "
\n", "
\n", "\n", "
\n", "\n", "\n", "
To prevent automated spam submissions leave this field empty.
\n", "
\n", "
\n", "

\n", "
\n", "\n", "\n", "
\n", "
\n", "
\n", "12559/12253\n", "
\n", "
\n", "
\n", "\n", "\n", "\n", "\n", "New York Post (News) \n", "\n", "\"AllSides \n", "\n", "
\n", "
\n", "
\n", "14941/7921\n", "
\n", "
\n", "
\n", "
\n", "

How do you think the bias of this source should be rated?

\n", "
\n", "
\n", "\n", "
\n", "
\n", "
\n", "\n", "
\n", "\n", "\n", "
To prevent automated spam submissions leave this field empty.
\n", "
\n", "
\n", "

\n", "
\n", "\n", "\n", "
\n", "
\n", "
\n", "14941/7921\n", "
\n", "
\n", "
\n", "\n", "\n", "\n", "\n", "New York Times (News) \n", "\n", "\"AllSides \n", "\n", "
\n", "
\n", "
\n", "29908/39740\n", "
\n", "
\n", "
\n", "
\n", "

How do you think the bias of this source should be rated?

\n", "
\n", "
\n", "\n", "
\n", "
\n", "
\n", "\n", "
\n", "\n", "\n", "
To prevent automated spam submissions leave this field empty.
\n", "
\n", "
\n", "

\n", "
\n", "\n", "\n", "
\n", "
\n", "
\n", "29908/39740\n", "
\n", "
\n", "
\n", "\n", "\n", "\n", "\n", "New York Times (Opinion) \n", "\n", "\"AllSides \n", "\n", "
\n", "
\n", "
\n", "15106/4123\n", "
\n", "
\n", "
\n", "
\n", "

How do you think the bias of this source should be rated?

\n", "
\n", "
\n", "\n", "
\n", "
\n", "
\n", "\n", "
\n", "\n", "\n", "
To prevent automated spam submissions leave this field empty.
\n", "
\n", "
\n", "

\n", "
\n", "\n", "\n", "
\n", "
\n", "
\n", "15106/4123\n", "
\n", "
\n", "
\n", "\n", "\n", "\n", "\n", "Newsweek \n", "\n", "\"AllSides \n", "\n", "
\n", "
\n", "
\n", "3598/5745\n", "
\n", "
\n", "
\n", "
\n", "

How do you think the bias of this source should be rated?

\n", "
\n", "
\n", "\n", "
\n", "
\n", "
\n", "\n", "
\n", "\n", "\n", "
To prevent automated spam submissions leave this field empty.
\n", "
\n", "
\n", "

\n", "
\n", "\n", "\n", "
\n", "
\n", "
\n", "3598/5745\n", "
\n", "
\n", "
\n", "\n", "\n", "\n", "\n", "NPR (Online News) \n", "\n", "\"AllSides \n", "\n", "
\n", "
\n", "
\n", "32462/31626\n", "
\n", "
\n", "
\n", "
\n", "

How do you think the bias of this source should be rated?

\n", "
\n", "
\n", "\n", "
\n", "
\n", "
\n", "\n", "
\n", "\n", "\n", "
To prevent automated spam submissions leave this field empty.
\n", "
\n", "
\n", "

\n", "
\n", "\n", "\n", "
\n", "
\n", "
\n", "32462/31626\n", "
\n", "
\n", "
\n", "\n", "\n", "\n", "\n", "NPR (Opinion) \n", "\n", "\"AllSides \n", "\n", "
\n", "
\n", "
\n", "8846/10096\n", "
\n", "
\n", "
\n", "
\n", "

How do you think the bias of this source should be rated?

\n", "
\n", "
\n", "\n", "
\n", "
\n", "
\n", "\n", "
\n", "\n", "\n", "
To prevent automated spam submissions leave this field empty.
\n", "
\n", "
\n", "

\n", "
\n", "\n", "\n", "
\n", "
\n", "
\n", "8846/10096\n", "
\n", "
\n", "
\n", "\n", "\n", "\n", "\n", "Politico \n", "\n", "\"AllSides \n", "\n", "
\n", "
\n", "
\n", "23899/30764\n", "
\n", "
\n", "
\n", "
\n", "

How do you think the bias of this source should be rated?

\n", "
\n", "
\n", "\n", "
\n", "
\n", "
\n", "\n", "
\n", "\n", "\n", "
To prevent automated spam submissions leave this field empty.
\n", "
\n", "
\n", "

\n", "
\n", "\n", "\n", "
\n", "
\n", "
\n", "23899/30764\n", "
\n", "
\n", "
\n", "\n", "\n", "\n", "\n", "Reason \n", "\n", "\"AllSides \n", "\n", "
\n", "
\n", "
\n", "9719/5930\n", "
\n", "
\n", "
\n", "
\n", "

How do you think the bias of this source should be rated?

\n", "
\n", "
\n", "\n", "
\n", "
\n", "
\n", "\n", "
\n", "\n", "\n", "
To prevent automated spam submissions leave this field empty.
\n", "
\n", "
\n", "

\n", "
\n", "\n", "\n", "
\n", "
\n", "
\n", "9719/5930\n", "
\n", "
\n", "
\n", "\n", "\n", "\n", "\n", "Reuters \n", "\n", "\"AllSides \n", "\n", "
\n", "
\n", "
\n", "18851/10712\n", "
\n", "
\n", "
\n", "
\n", "

How do you think the bias of this source should be rated?

\n", "
\n", "
\n", "\n", "
\n", "
\n", "
\n", "\n", "
\n", "\n", "\n", "
To prevent automated spam submissions leave this field empty.
\n", "
\n", "
\n", "

\n", "
\n", "\n", "\n", "
\n", "
\n", "
\n", "18851/10712\n", "
\n", "
\n", "
\n", "\n", "\n", "\n", "\n", "Slate \n", "\n", "\"AllSides \n", "\n", "
\n", "
\n", "
\n", "9950/3604\n", "
\n", "
\n", "
\n", "
\n", "

How do you think the bias of this source should be rated?

\n", "
\n", "
\n", "\n", "
\n", "
\n", "
\n", "\n", "
\n", "\n", "\n", "
To prevent automated spam submissions leave this field empty.
\n", "
\n", "
\n", "

\n", "
\n", "\n", "\n", "
\n", "
\n", "
\n", "9950/3604\n", "
\n", "
\n", "
\n", "\n", "\n", "\n", "\n", "The American Spectator \n", "\n", "\"AllSides \n", "\n", "
\n", "
\n", "
\n", "12212/4261\n", "
\n", "
\n", "
\n", "
\n", "

How do you think the bias of this source should be rated?

\n", "
\n", "
\n", "\n", "
\n", "
\n", "
\n", "\n", "
\n", "\n", "\n", "
To prevent automated spam submissions leave this field empty.
\n", "
\n", "
\n", "

\n", "
\n", "\n", "\n", "
\n", "
\n", "
\n", "12212/4261\n", "
\n", "
\n", "
\n", "\n", "\n", "\n", "\n", "The Atlantic \n", "\n", "\"AllSides \n", "\n", "
\n", "
\n", "
\n", "15167/8384\n", "
\n", "
\n", "
\n", "
\n", "

How do you think the bias of this source should be rated?

\n", "
\n", "
\n", "\n", "
\n", "
\n", "
\n", "\n", "
\n", "\n", "\n", "
To prevent automated spam submissions leave this field empty.
\n", "
\n", "
\n", "

\n", "
\n", "\n", "\n", "
\n", "
\n", "
\n", "15167/8384\n", "
\n", "
\n", "
\n", "\n", "\n", "\n", "\n", "The Daily Caller \n", "\n", "\"AllSides \n", "\n", "
\n", "
\n", "
\n", "10314/4117\n", "
\n", "
\n", "
\n", "
\n", "

How do you think the bias of this source should be rated?

\n", "
\n", "
\n", "\n", "
\n", "
\n", "
\n", "\n", "
\n", "\n", "\n", "
To prevent automated spam submissions leave this field empty.
\n", "
\n", "
\n", "

\n", "
\n", "\n", "\n", "
\n", "
\n", "
\n", "10314/4117\n", "
\n", "
\n", "
\n", "\n", "\n", "\n", "\n", "The Daily Wire \n", "\n", "\"AllSides \n", "\n", "
\n", "
\n", "
\n", "11239/4030\n", "
\n", "
\n", "
\n", "
\n", "

How do you think the bias of this source should be rated?

\n", "
\n", "
\n", "\n", "
\n", "
\n", "
\n", "\n", "
\n", "\n", "\n", "
To prevent automated spam submissions leave this field empty.
\n", "
\n", "
\n", "

\n", "
\n", "\n", "\n", "
\n", "
\n", "
\n", "11239/4030\n", "
\n", "
\n", "
\n", "\n", "\n", "\n", "\n", "The Economist \n", "\n", "\"AllSides \n", "\n", "
\n", "
\n", "
\n", "6174/10483\n", "
\n", "
\n", "
\n", "
\n", "

How do you think the bias of this source should be rated?

\n", "
\n", "
\n", "\n", "
\n", "
\n", "
\n", "\n", "
\n", "\n", "\n", "
To prevent automated spam submissions leave this field empty.
\n", "
\n", "
\n", "

\n", "
\n", "\n", "\n", "
\n", "
\n", "
\n", "6174/10483\n", "
\n", "
\n", "
\n", "\n", "\n", "\n", "\n", "The Epoch Times \n", "\n", "\"AllSides \n", "\n", "
\n", "
\n", "
\n", "11763/5857\n", "
\n", "
\n", "
\n", "
\n", "

How do you think the bias of this source should be rated?

\n", "
\n", "
\n", "\n", "
\n", "
\n", "
\n", "\n", "
\n", "\n", "\n", "
To prevent automated spam submissions leave this field empty.
\n", "
\n", "
\n", "

\n", "
\n", "\n", "\n", "
\n", "
\n", "
\n", "11763/5857\n", "
\n", "
\n", "
\n", "\n", "\n", "\n", "\n", "The Federalist \n", "\n", "\"AllSides \n", "\n", "
\n", "
\n", "
\n", "9502/2926\n", "
\n", "
\n", "
\n", "
\n", "

How do you think the bias of this source should be rated?

\n", "
\n", "
\n", "\n", "
\n", "
\n", "
\n", "\n", "
\n", "\n", "\n", "
To prevent automated spam submissions leave this field empty.
\n", "
\n", "
\n", "

\n", "
\n", "\n", "\n", "
\n", "
\n", "
\n", "9502/2926\n", "
\n", "
\n", "
\n", "\n", "\n", "\n", "\n", "The Guardian \n", "\n", "\"AllSides \n", "\n", "
\n", "
\n", "
\n", "14113/8671\n", "
\n", "
\n", "
\n", "
\n", "

How do you think the bias of this source should be rated?

\n", "
\n", "
\n", "\n", "
\n", "
\n", "
\n", "\n", "
\n", "\n", "\n", "
To prevent automated spam submissions leave this field empty.
\n", "
\n", "
\n", "

\n", "
\n", "\n", "\n", "
\n", "
\n", "
\n", "14113/8671\n", "
\n", "
\n", "
\n", "\n", "\n", "\n", "\n", "The Hill \n", "\n", "\"AllSides \n", "\n", "
\n", "
\n", "
\n", "16634/22359\n", "
\n", "
\n", "
\n", "
\n", "

How do you think the bias of this source should be rated?

\n", "
\n", "
\n", "\n", "
\n", "
\n", "
\n", "\n", "
\n", "\n", "\n", "
To prevent automated spam submissions leave this field empty.
\n", "
\n", "
\n", "

\n", "
\n", "\n", "\n", "
\n", "
\n", "
\n", "16634/22359\n", "
\n", "
\n", "
\n", "\n", "\n", "\n", "\n", "The Intercept \n", "\n", "\"AllSides \n", "\n", "
\n", "
\n", "
\n", "5804/1729\n", "
\n", "
\n", "
\n", "
\n", "

How do you think the bias of this source should be rated?

\n", "
\n", "
\n", "\n", "
\n", "
\n", "
\n", "\n", "
\n", "\n", "\n", "
To prevent automated spam submissions leave this field empty.
\n", "
\n", "
\n", "

\n", "
\n", "\n", "\n", "
\n", "
\n", "
\n", "5804/1729\n", "
\n", "
\n", "
\n", "\n", "\n", "\n", "\n", "The New Yorker \n", "\n", "\"AllSides \n", "\n", "
\n", "
\n", "
\n", "9891/2398\n", "
\n", "
\n", "
\n", "
\n", "

How do you think the bias of this source should be rated?

\n", "
\n", "
\n", "\n", "
\n", "
\n", "
\n", "\n", "
\n", "\n", "\n", "
To prevent automated spam submissions leave this field empty.
\n", "
\n", "
\n", "

\n", "
\n", "\n", "\n", "
\n", "
\n", "
\n", "9891/2398\n", "
\n", "
\n", "
\n", "\n", "\n", "\n", "\n", "TheBlaze.com \n", "\n", "\"AllSides \n", "\n", "
\n", "
\n", "
\n", "101913/81551\n", "
\n", "
\n", "
\n", "
\n", "

How do you think the bias of this source should be rated?

\n", "
\n", "
\n", "\n", "
\n", "
\n", "
\n", "\n", "
\n", "\n", "\n", "
To prevent automated spam submissions leave this field empty.
\n", "
\n", "
\n", "

\n", "
\n", "\n", "\n", "
\n", "
\n", "
\n", "101913/81551\n", "
\n", "
\n", "
\n", "\n", "\n", "\n", "\n", "Time Magazine \n", "\n", "\"AllSides \n", "\n", "
\n", "
\n", "
\n", "9666/8138\n", "
\n", "
\n", "
\n", "
\n", "

How do you think the bias of this source should be rated?

\n", "
\n", "
\n", "\n", "
\n", "
\n", "
\n", "\n", "
\n", "\n", "\n", "
To prevent automated spam submissions leave this field empty.
\n", "
\n", "
\n", "

\n", "
\n", "\n", "\n", "
\n", "
\n", "
\n", "9666/8138\n", "
\n", "
\n", "
\n", "\n", "\n", "\n", "\n", "USA TODAY \n", "\n", "\"AllSides \n", "\n", "
\n", "
\n", "
\n", "18898/21151\n", "
\n", "
\n", "
\n", "
\n", "

How do you think the bias of this source should be rated?

\n", "
\n", "
\n", "\n", "
\n", "
\n", "
\n", "\n", "
\n", "\n", "\n", "
To prevent automated spam submissions leave this field empty.
\n", "
\n", "
\n", "

\n", "
\n", "\n", "\n", "
\n", "
\n", "
\n", "18898/21151\n", "
\n", "
\n", "
\n", "\n", "\n", "\n", "\n", "Vox \n", "\n", "\"AllSides \n", "\n", "
\n", "
\n", "
\n", "30416/15165\n", "
\n", "
\n", "
\n", "
\n", "

How do you think the bias of this source should be rated?

\n", "
\n", "
\n", "\n", "
\n", "
\n", "
\n", "\n", "
\n", "\n", "\n", "
To prevent automated spam submissions leave this field empty.
\n", "
\n", "
\n", "

\n", "
\n", "\n", "\n", "
\n", "
\n", "
\n", "30416/15165\n", "
\n", "
\n", "
\n", "\n", "\n", "\n", "\n", "Wall Street Journal (News) \n", "\n", "\"AllSides \n", "\n", "
\n", "
\n", "
\n", "22701/25408\n", "
\n", "
\n", "
\n", "
\n", "

How do you think the bias of this source should be rated?

\n", "
\n", "
\n", "\n", "
\n", "
\n", "
\n", "\n", "
\n", "\n", "\n", "
To prevent automated spam submissions leave this field empty.
\n", "
\n", "
\n", "

\n", "
\n", "\n", "\n", "
\n", "
\n", "
\n", "22701/25408\n", "
\n", "
\n", "
\n", "\n", "\n", "\n", "\n", "Wall Street Journal (Opinion) \n", "\n", "\"AllSides \n", "\n", "
\n", "
\n", "
\n", "11506/7677\n", "
\n", "
\n", "
\n", "
\n", "

How do you think the bias of this source should be rated?

\n", "
\n", "
\n", "\n", "
\n", "
\n", "
\n", "\n", "
\n", "\n", "\n", "
To prevent automated spam submissions leave this field empty.
\n", "
\n", "
\n", "

\n", "
\n", "\n", "\n", "
\n", "
\n", "
\n", "11506/7677\n", "
\n", "
\n", "
\n", "\n", "\n", "" ] }, "execution_count": 10, "metadata": {}, "output_type": "execute_result" } ], "source": [ "# Extraemos el objeto tbody que está en clase (table body)\n", "soup.select_one('tbody')" ] }, { "cell_type": "code", "execution_count": 11, "id": "f584bb7c-91bb-4558-943d-c51d399aad81", "metadata": { "scrolled": true, "tags": [] }, "outputs": [ { "data": { "text/plain": [ "[\n", " \n", " \n", " ABC News (Online) \n", " \n", " \"AllSides \n", " \n", "
\n", "
\n", "
\n", " 36820/18558\n", "
\n", "
\n", "
\n", "
\n", "

How do you think the bias of this source should be rated?

\n", "
\n", "
\n", " \n", "
\n", "
\n", "
\n", " \n", "
\n", " \n", " \n", "
To prevent automated spam submissions leave this field empty.
\n", "
\n", "
\n", "

\n", "
\n", " \n", " \n", "
\n", "
\n", "
\n", " 36820/18558\n", "
\n", "
\n", "
\n", " \n", " \n", " \n", " \n", " AlterNet \n", " \n", " \"AllSides \n", " \n", "
\n", "
\n", "
\n", " 14432/3158\n", "
\n", "
\n", "
\n", "
\n", "

How do you think the bias of this source should be rated?

\n", "
\n", "
\n", " \n", "
\n", "
\n", "
\n", " \n", "
\n", " \n", " \n", "
To prevent automated spam submissions leave this field empty.
\n", "
\n", "
\n", "

\n", "
\n", " \n", " \n", "
\n", "
\n", "
\n", " 14432/3158\n", "
\n", "
\n", "
\n", " \n", " \n", " \n", " \n", " Associated Press \n", " \n", " \"AllSides \n", " \n", "
\n", "
\n", "
\n", " 27946/21821\n", "
\n", "
\n", "
\n", "
\n", "

How do you think the bias of this source should be rated?

\n", "
\n", "
\n", " \n", "
\n", "
\n", "
\n", " \n", "
\n", " \n", " \n", "
To prevent automated spam submissions leave this field empty.
\n", "
\n", "
\n", "

\n", "
\n", " \n", " \n", "
\n", "
\n", "
\n", " 27946/21821\n", "
\n", "
\n", "
\n", " \n", " \n", " \n", " \n", " Axios \n", " \n", " \"AllSides \n", " \n", "
\n", "
\n", "
\n", " 6663/7172\n", "
\n", "
\n", "
\n", "
\n", "

How do you think the bias of this source should be rated?

\n", "
\n", "
\n", " \n", "
\n", "
\n", "
\n", " \n", "
\n", " \n", " \n", "
To prevent automated spam submissions leave this field empty.
\n", "
\n", "
\n", "

\n", "
\n", " \n", " \n", "
\n", "
\n", "
\n", " 6663/7172\n", "
\n", "
\n", "
\n", " \n", " \n", " \n", " \n", " BBC News \n", " \n", " \"AllSides \n", " \n", "
\n", "
\n", "
\n", " 30429/26136\n", "
\n", "
\n", "
\n", "
\n", "

How do you think the bias of this source should be rated?

\n", "
\n", "
\n", " \n", "
\n", "
\n", "
\n", " \n", "
\n", " \n", " \n", "
To prevent automated spam submissions leave this field empty.
\n", "
\n", "
\n", "

\n", "
\n", " \n", " \n", "
\n", "
\n", "
\n", " 30429/26136\n", "
\n", "
\n", "
\n", " \n", " \n", " \n", " \n", " Bloomberg \n", " \n", " \"AllSides \n", " \n", "
\n", "
\n", "
\n", " 16528/21651\n", "
\n", "
\n", "
\n", "
\n", "

How do you think the bias of this source should be rated?

\n", "
\n", "
\n", " \n", "
\n", "
\n", "
\n", " \n", "
\n", " \n", " \n", "
To prevent automated spam submissions leave this field empty.
\n", "
\n", "
\n", "

\n", "
\n", " \n", " \n", "
\n", "
\n", "
\n", " 16528/21651\n", "
\n", "
\n", "
\n", " \n", " \n", " \n", " \n", " Breitbart News \n", " \n", " \"AllSides \n", " \n", "
\n", "
\n", "
\n", " 40629/11439\n", "
\n", "
\n", "
\n", "
\n", "

How do you think the bias of this source should be rated?

\n", "
\n", "
\n", " \n", "
\n", "
\n", "
\n", " \n", "
\n", " \n", " \n", "
To prevent automated spam submissions leave this field empty.
\n", "
\n", "
\n", "

\n", "
\n", " \n", " \n", "
\n", "
\n", "
\n", " 40629/11439\n", "
\n", "
\n", "
\n", " \n", " \n", " \n", " \n", " BuzzFeed News \n", " \n", " \"AllSides \n", " \n", "
\n", "
\n", "
\n", " 25760/9402\n", "
\n", "
\n", "
\n", "
\n", "

How do you think the bias of this source should be rated?

\n", "
\n", "
\n", " \n", "
\n", "
\n", "
\n", " \n", "
\n", " \n", " \n", "
To prevent automated spam submissions leave this field empty.
\n", "
\n", "
\n", "

\n", "
\n", " \n", " \n", "
\n", "
\n", "
\n", " 25760/9402\n", "
\n", "
\n", "
\n", " \n", " \n", " \n", " \n", " CBS News (Online) \n", " \n", " \"AllSides \n", " \n", "
\n", "
\n", "
\n", " 19605/12502\n", "
\n", "
\n", "
\n", "
\n", "

How do you think the bias of this source should be rated?

\n", "
\n", "
\n", " \n", "
\n", "
\n", "
\n", " \n", "
\n", " \n", " \n", "
To prevent automated spam submissions leave this field empty.
\n", "
\n", "
\n", "

\n", "
\n", " \n", " \n", "
\n", "
\n", "
\n", " 19605/12502\n", "
\n", "
\n", "
\n", " \n", " \n", " \n", " \n", " Christian Science Monitor \n", " \n", " \"AllSides \n", " \n", "
\n", "
\n", "
\n", " 16061/19652\n", "
\n", "
\n", "
\n", "
\n", "

How do you think the bias of this source should be rated?

\n", "
\n", "
\n", " \n", "
\n", "
\n", "
\n", " \n", "
\n", " \n", " \n", "
To prevent automated spam submissions leave this field empty.
\n", "
\n", "
\n", "

\n", "
\n", " \n", " \n", "
\n", "
\n", "
\n", " 16061/19652\n", "
\n", "
\n", "
\n", " \n", " \n", " \n", " \n", " CNN (Online News) \n", " \n", " \"AllSides \n", " \n", "
\n", "
\n", "
\n", " 53113/48559\n", "
\n", "
\n", "
\n", "
\n", "

How do you think the bias of this source should be rated?

\n", "
\n", "
\n", " \n", "
\n", "
\n", "
\n", " \n", "
\n", " \n", " \n", "
To prevent automated spam submissions leave this field empty.
\n", "
\n", "
\n", "

\n", "
\n", " \n", " \n", "
\n", "
\n", "
\n", " 53113/48559\n", "
\n", "
\n", "
\n", " \n", " \n", " \n", " \n", " CNN (Opinion) \n", " \n", " \"AllSides \n", " \n", "
\n", "
\n", "
\n", " 35060/7740\n", "
\n", "
\n", "
\n", "
\n", "

How do you think the bias of this source should be rated?

\n", "
\n", "
\n", " \n", "
\n", "
\n", "
\n", " \n", "
\n", " \n", " \n", "
To prevent automated spam submissions leave this field empty.
\n", "
\n", "
\n", "

\n", "
\n", " \n", " \n", "
\n", "
\n", "
\n", " 35060/7740\n", "
\n", "
\n", "
\n", " \n", " \n", " \n", " \n", " Daily Beast \n", " \n", " \"AllSides \n", " \n", "
\n", "
\n", "
\n", " 20245/6297\n", "
\n", "
\n", "
\n", "
\n", "

How do you think the bias of this source should be rated?

\n", "
\n", "
\n", " \n", "
\n", "
\n", "
\n", " \n", "
\n", " \n", " \n", "
To prevent automated spam submissions leave this field empty.
\n", "
\n", "
\n", "

\n", "
\n", " \n", " \n", "
\n", "
\n", "
\n", " 20245/6297\n", "
\n", "
\n", "
\n", " \n", " \n", " \n", " \n", " Daily Mail \n", " \n", " \"AllSides \n", " \n", "
\n", "
\n", "
\n", " 12503/6816\n", "
\n", "
\n", "
\n", "
\n", "

How do you think the bias of this source should be rated?

\n", "
\n", "
\n", " \n", "
\n", "
\n", "
\n", " \n", "
\n", " \n", " \n", "
To prevent automated spam submissions leave this field empty.
\n", "
\n", "
\n", "

\n", "
\n", " \n", " \n", "
\n", "
\n", "
\n", " 12503/6816\n", "
\n", "
\n", "
\n", " \n", " \n", " \n", " \n", " Democracy Now \n", " \n", " \"AllSides \n", " \n", "
\n", "
\n", "
\n", " 13804/3188\n", "
\n", "
\n", "
\n", "
\n", "

How do you think the bias of this source should be rated?

\n", "
\n", "
\n", " \n", "
\n", "
\n", "
\n", " \n", "
\n", " \n", " \n", "
To prevent automated spam submissions leave this field empty.
\n", "
\n", "
\n", "

\n", "
\n", " \n", " \n", "
\n", "
\n", "
\n", " 13804/3188\n", "
\n", "
\n", "
\n", " \n", " \n", " \n", " \n", " Forbes \n", " \n", " \"AllSides \n", " \n", "
\n", "
\n", "
\n", " 14329/9059\n", "
\n", "
\n", "
\n", "
\n", "

How do you think the bias of this source should be rated?

\n", "
\n", "
\n", " \n", "
\n", "
\n", "
\n", " \n", "
\n", " \n", " \n", "
To prevent automated spam submissions leave this field empty.
\n", "
\n", "
\n", "

\n", "
\n", " \n", " \n", "
\n", "
\n", "
\n", " 14329/9059\n", "
\n", "
\n", "
\n", " \n", " \n", " \n", " \n", " Fox News (Online News) \n", " \n", " \"AllSides \n", " \n", "
\n", "
\n", "
\n", " 43738/48774\n", "
\n", "
\n", "
\n", "
\n", "

How do you think the bias of this source should be rated?

\n", "
\n", "
\n", " \n", "
\n", "
\n", "
\n", " \n", "
\n", " \n", " \n", "
To prevent automated spam submissions leave this field empty.
\n", "
\n", "
\n", "

\n", "
\n", " \n", " \n", "
\n", "
\n", "
\n", " 43738/48774\n", "
\n", "
\n", "
\n", " \n", " \n", " \n", " \n", " Fox News (Opinion) \n", " \n", " \"AllSides \n", " \n", "
\n", "
\n", "
\n", " 29609/6877\n", "
\n", "
\n", "
\n", "
\n", "

How do you think the bias of this source should be rated?

\n", "
\n", "
\n", " \n", "
\n", "
\n", "
\n", " \n", "
\n", " \n", " \n", "
To prevent automated spam submissions leave this field empty.
\n", "
\n", "
\n", "

\n", "
\n", " \n", " \n", "
\n", "
\n", "
\n", " 29609/6877\n", "
\n", "
\n", "
\n", " \n", " \n", " \n", " \n", " HuffPost \n", " \n", " \"AllSides \n", " \n", "
\n", "
\n", "
\n", " 36265/22414\n", "
\n", "
\n", "
\n", "
\n", "

How do you think the bias of this source should be rated?

\n", "
\n", "
\n", " \n", "
\n", "
\n", "
\n", " \n", "
\n", " \n", " \n", "
To prevent automated spam submissions leave this field empty.
\n", "
\n", "
\n", "

\n", "
\n", " \n", " \n", "
\n", "
\n", "
\n", " 36265/22414\n", "
\n", "
\n", "
\n", " \n", " \n", " \n", " \n", " Mother Jones \n", " \n", " \"AllSides \n", " \n", "
\n", "
\n", "
\n", " 15852/2354\n", "
\n", "
\n", "
\n", "
\n", "

How do you think the bias of this source should be rated?

\n", "
\n", "
\n", " \n", "
\n", "
\n", "
\n", " \n", "
\n", " \n", " \n", "
To prevent automated spam submissions leave this field empty.
\n", "
\n", "
\n", "

\n", "
\n", " \n", " \n", "
\n", "
\n", "
\n", " 15852/2354\n", "
\n", "
\n", "
\n", " \n", " \n", " \n", " \n", " MSNBC \n", " \n", " \"AllSides \n", " \n", "
\n", "
\n", "
\n", " 22074/5663\n", "
\n", "
\n", "
\n", "
\n", "

How do you think the bias of this source should be rated?

\n", "
\n", "
\n", " \n", "
\n", "
\n", "
\n", " \n", "
\n", " \n", " \n", "
To prevent automated spam submissions leave this field empty.
\n", "
\n", "
\n", "

\n", "
\n", " \n", " \n", "
\n", "
\n", "
\n", " 22074/5663\n", "
\n", "
\n", "
\n", " \n", " \n", " \n", " \n", " National Review \n", " \n", " \"AllSides \n", " \n", "
\n", "
\n", "
\n", " 19487/7970\n", "
\n", "
\n", "
\n", "
\n", "

How do you think the bias of this source should be rated?

\n", "
\n", "
\n", " \n", "
\n", "
\n", "
\n", " \n", "
\n", " \n", " \n", "
To prevent automated spam submissions leave this field empty.
\n", "
\n", "
\n", "

\n", "
\n", " \n", " \n", "
\n", "
\n", "
\n", " 19487/7970\n", "
\n", "
\n", "
\n", " \n", " \n", " \n", " \n", " NBC News (Online) \n", " \n", " \"AllSides \n", " \n", "
\n", "
\n", "
\n", " 12559/12253\n", "
\n", "
\n", "
\n", "
\n", "

How do you think the bias of this source should be rated?

\n", "
\n", "
\n", " \n", "
\n", "
\n", "
\n", " \n", "
\n", " \n", " \n", "
To prevent automated spam submissions leave this field empty.
\n", "
\n", "
\n", "

\n", "
\n", " \n", " \n", "
\n", "
\n", "
\n", " 12559/12253\n", "
\n", "
\n", "
\n", " \n", " \n", " \n", " \n", " New York Post (News) \n", " \n", " \"AllSides \n", " \n", "
\n", "
\n", "
\n", " 14941/7921\n", "
\n", "
\n", "
\n", "
\n", "

How do you think the bias of this source should be rated?

\n", "
\n", "
\n", " \n", "
\n", "
\n", "
\n", " \n", "
\n", " \n", " \n", "
To prevent automated spam submissions leave this field empty.
\n", "
\n", "
\n", "

\n", "
\n", " \n", " \n", "
\n", "
\n", "
\n", " 14941/7921\n", "
\n", "
\n", "
\n", " \n", " \n", " \n", " \n", " New York Times (News) \n", " \n", " \"AllSides \n", " \n", "
\n", "
\n", "
\n", " 29908/39740\n", "
\n", "
\n", "
\n", "
\n", "

How do you think the bias of this source should be rated?

\n", "
\n", "
\n", " \n", "
\n", "
\n", "
\n", " \n", "
\n", " \n", " \n", "
To prevent automated spam submissions leave this field empty.
\n", "
\n", "
\n", "

\n", "
\n", " \n", " \n", "
\n", "
\n", "
\n", " 29908/39740\n", "
\n", "
\n", "
\n", " \n", " \n", " \n", " \n", " New York Times (Opinion) \n", " \n", " \"AllSides \n", " \n", "
\n", "
\n", "
\n", " 15106/4123\n", "
\n", "
\n", "
\n", "
\n", "

How do you think the bias of this source should be rated?

\n", "
\n", "
\n", " \n", "
\n", "
\n", "
\n", " \n", "
\n", " \n", " \n", "
To prevent automated spam submissions leave this field empty.
\n", "
\n", "
\n", "

\n", "
\n", " \n", " \n", "
\n", "
\n", "
\n", " 15106/4123\n", "
\n", "
\n", "
\n", " \n", " \n", " \n", " \n", " Newsweek \n", " \n", " \"AllSides \n", " \n", "
\n", "
\n", "
\n", " 3598/5745\n", "
\n", "
\n", "
\n", "
\n", "

How do you think the bias of this source should be rated?

\n", "
\n", "
\n", " \n", "
\n", "
\n", "
\n", " \n", "
\n", " \n", " \n", "
To prevent automated spam submissions leave this field empty.
\n", "
\n", "
\n", "

\n", "
\n", " \n", " \n", "
\n", "
\n", "
\n", " 3598/5745\n", "
\n", "
\n", "
\n", " \n", " \n", " \n", " \n", " NPR (Online News) \n", " \n", " \"AllSides \n", " \n", "
\n", "
\n", "
\n", " 32462/31626\n", "
\n", "
\n", "
\n", "
\n", "

How do you think the bias of this source should be rated?

\n", "
\n", "
\n", " \n", "
\n", "
\n", "
\n", " \n", "
\n", " \n", " \n", "
To prevent automated spam submissions leave this field empty.
\n", "
\n", "
\n", "

\n", "
\n", " \n", " \n", "
\n", "
\n", "
\n", " 32462/31626\n", "
\n", "
\n", "
\n", " \n", " \n", " \n", " \n", " NPR (Opinion) \n", " \n", " \"AllSides \n", " \n", "
\n", "
\n", "
\n", " 8846/10096\n", "
\n", "
\n", "
\n", "
\n", "

How do you think the bias of this source should be rated?

\n", "
\n", "
\n", " \n", "
\n", "
\n", "
\n", " \n", "
\n", " \n", " \n", "
To prevent automated spam submissions leave this field empty.
\n", "
\n", "
\n", "

\n", "
\n", " \n", " \n", "
\n", "
\n", "
\n", " 8846/10096\n", "
\n", "
\n", "
\n", " \n", " \n", " \n", " \n", " Politico \n", " \n", " \"AllSides \n", " \n", "
\n", "
\n", "
\n", " 23899/30764\n", "
\n", "
\n", "
\n", "
\n", "

How do you think the bias of this source should be rated?

\n", "
\n", "
\n", " \n", "
\n", "
\n", "
\n", " \n", "
\n", " \n", " \n", "
To prevent automated spam submissions leave this field empty.
\n", "
\n", "
\n", "

\n", "
\n", " \n", " \n", "
\n", "
\n", "
\n", " 23899/30764\n", "
\n", "
\n", "
\n", " \n", " \n", " \n", " \n", " Reason \n", " \n", " \"AllSides \n", " \n", "
\n", "
\n", "
\n", " 9719/5930\n", "
\n", "
\n", "
\n", "
\n", "

How do you think the bias of this source should be rated?

\n", "
\n", "
\n", " \n", "
\n", "
\n", "
\n", " \n", "
\n", " \n", " \n", "
To prevent automated spam submissions leave this field empty.
\n", "
\n", "
\n", "

\n", "
\n", " \n", " \n", "
\n", "
\n", "
\n", " 9719/5930\n", "
\n", "
\n", "
\n", " \n", " \n", " \n", " \n", " Reuters \n", " \n", " \"AllSides \n", " \n", "
\n", "
\n", "
\n", " 18851/10712\n", "
\n", "
\n", "
\n", "
\n", "

How do you think the bias of this source should be rated?

\n", "
\n", "
\n", " \n", "
\n", "
\n", "
\n", " \n", "
\n", " \n", " \n", "
To prevent automated spam submissions leave this field empty.
\n", "
\n", "
\n", "

\n", "
\n", " \n", " \n", "
\n", "
\n", "
\n", " 18851/10712\n", "
\n", "
\n", "
\n", " \n", " \n", " \n", " \n", " Slate \n", " \n", " \"AllSides \n", " \n", "
\n", "
\n", "
\n", " 9950/3604\n", "
\n", "
\n", "
\n", "
\n", "

How do you think the bias of this source should be rated?

\n", "
\n", "
\n", " \n", "
\n", "
\n", "
\n", " \n", "
\n", " \n", " \n", "
To prevent automated spam submissions leave this field empty.
\n", "
\n", "
\n", "

\n", "
\n", " \n", " \n", "
\n", "
\n", "
\n", " 9950/3604\n", "
\n", "
\n", "
\n", " \n", " \n", " \n", " \n", " The American Spectator \n", " \n", " \"AllSides \n", " \n", "
\n", "
\n", "
\n", " 12212/4261\n", "
\n", "
\n", "
\n", "
\n", "

How do you think the bias of this source should be rated?

\n", "
\n", "
\n", " \n", "
\n", "
\n", "
\n", " \n", "
\n", " \n", " \n", "
To prevent automated spam submissions leave this field empty.
\n", "
\n", "
\n", "

\n", "
\n", " \n", " \n", "
\n", "
\n", "
\n", " 12212/4261\n", "
\n", "
\n", "
\n", " \n", " \n", " \n", " \n", " The Atlantic \n", " \n", " \"AllSides \n", " \n", "
\n", "
\n", "
\n", " 15167/8384\n", "
\n", "
\n", "
\n", "
\n", "

How do you think the bias of this source should be rated?

\n", "
\n", "
\n", " \n", "
\n", "
\n", "
\n", " \n", "
\n", " \n", " \n", "
To prevent automated spam submissions leave this field empty.
\n", "
\n", "
\n", "

\n", "
\n", " \n", " \n", "
\n", "
\n", "
\n", " 15167/8384\n", "
\n", "
\n", "
\n", " \n", " \n", " \n", " \n", " The Daily Caller \n", " \n", " \"AllSides \n", " \n", "
\n", "
\n", "
\n", " 10314/4117\n", "
\n", "
\n", "
\n", "
\n", "

How do you think the bias of this source should be rated?

\n", "
\n", "
\n", " \n", "
\n", "
\n", "
\n", " \n", "
\n", " \n", " \n", "
To prevent automated spam submissions leave this field empty.
\n", "
\n", "
\n", "

\n", "
\n", " \n", " \n", "
\n", "
\n", "
\n", " 10314/4117\n", "
\n", "
\n", "
\n", " \n", " \n", " \n", " \n", " The Daily Wire \n", " \n", " \"AllSides \n", " \n", "
\n", "
\n", "
\n", " 11239/4030\n", "
\n", "
\n", "
\n", "
\n", "

How do you think the bias of this source should be rated?

\n", "
\n", "
\n", " \n", "
\n", "
\n", "
\n", " \n", "
\n", " \n", " \n", "
To prevent automated spam submissions leave this field empty.
\n", "
\n", "
\n", "

\n", "
\n", " \n", " \n", "
\n", "
\n", "
\n", " 11239/4030\n", "
\n", "
\n", "
\n", " \n", " \n", " \n", " \n", " The Economist \n", " \n", " \"AllSides \n", " \n", "
\n", "
\n", "
\n", " 6174/10483\n", "
\n", "
\n", "
\n", "
\n", "

How do you think the bias of this source should be rated?

\n", "
\n", "
\n", " \n", "
\n", "
\n", "
\n", " \n", "
\n", " \n", " \n", "
To prevent automated spam submissions leave this field empty.
\n", "
\n", "
\n", "

\n", "
\n", " \n", " \n", "
\n", "
\n", "
\n", " 6174/10483\n", "
\n", "
\n", "
\n", " \n", " \n", " \n", " \n", " The Epoch Times \n", " \n", " \"AllSides \n", " \n", "
\n", "
\n", "
\n", " 11763/5857\n", "
\n", "
\n", "
\n", "
\n", "

How do you think the bias of this source should be rated?

\n", "
\n", "
\n", " \n", "
\n", "
\n", "
\n", " \n", "
\n", " \n", " \n", "
To prevent automated spam submissions leave this field empty.
\n", "
\n", "
\n", "

\n", "
\n", " \n", " \n", "
\n", "
\n", "
\n", " 11763/5857\n", "
\n", "
\n", "
\n", " \n", " \n", " \n", " \n", " The Federalist \n", " \n", " \"AllSides \n", " \n", "
\n", "
\n", "
\n", " 9502/2926\n", "
\n", "
\n", "
\n", "
\n", "

How do you think the bias of this source should be rated?

\n", "
\n", "
\n", " \n", "
\n", "
\n", "
\n", " \n", "
\n", " \n", " \n", "
To prevent automated spam submissions leave this field empty.
\n", "
\n", "
\n", "

\n", "
\n", " \n", " \n", "
\n", "
\n", "
\n", " 9502/2926\n", "
\n", "
\n", "
\n", " \n", " \n", " \n", " \n", " The Guardian \n", " \n", " \"AllSides \n", " \n", "
\n", "
\n", "
\n", " 14113/8671\n", "
\n", "
\n", "
\n", "
\n", "

How do you think the bias of this source should be rated?

\n", "
\n", "
\n", " \n", "
\n", "
\n", "
\n", " \n", "
\n", " \n", " \n", "
To prevent automated spam submissions leave this field empty.
\n", "
\n", "
\n", "

\n", "
\n", " \n", " \n", "
\n", "
\n", "
\n", " 14113/8671\n", "
\n", "
\n", "
\n", " \n", " \n", " \n", " \n", " The Hill \n", " \n", " \"AllSides \n", " \n", "
\n", "
\n", "
\n", " 16634/22359\n", "
\n", "
\n", "
\n", "
\n", "

How do you think the bias of this source should be rated?

\n", "
\n", "
\n", " \n", "
\n", "
\n", "
\n", " \n", "
\n", " \n", " \n", "
To prevent automated spam submissions leave this field empty.
\n", "
\n", "
\n", "

\n", "
\n", " \n", " \n", "
\n", "
\n", "
\n", " 16634/22359\n", "
\n", "
\n", "
\n", " \n", " \n", " \n", " \n", " The Intercept \n", " \n", " \"AllSides \n", " \n", "
\n", "
\n", "
\n", " 5804/1729\n", "
\n", "
\n", "
\n", "
\n", "

How do you think the bias of this source should be rated?

\n", "
\n", "
\n", " \n", "
\n", "
\n", "
\n", " \n", "
\n", " \n", " \n", "
To prevent automated spam submissions leave this field empty.
\n", "
\n", "
\n", "

\n", "
\n", " \n", " \n", "
\n", "
\n", "
\n", " 5804/1729\n", "
\n", "
\n", "
\n", " \n", " \n", " \n", " \n", " The New Yorker \n", " \n", " \"AllSides \n", " \n", "
\n", "
\n", "
\n", " 9891/2398\n", "
\n", "
\n", "
\n", "
\n", "

How do you think the bias of this source should be rated?

\n", "
\n", "
\n", " \n", "
\n", "
\n", "
\n", " \n", "
\n", " \n", " \n", "
To prevent automated spam submissions leave this field empty.
\n", "
\n", "
\n", "

\n", "
\n", " \n", " \n", "
\n", "
\n", "
\n", " 9891/2398\n", "
\n", "
\n", "
\n", " \n", " \n", " \n", " \n", " TheBlaze.com \n", " \n", " \"AllSides \n", " \n", "
\n", "
\n", "
\n", " 101913/81551\n", "
\n", "
\n", "
\n", "
\n", "

How do you think the bias of this source should be rated?

\n", "
\n", "
\n", " \n", "
\n", "
\n", "
\n", " \n", "
\n", " \n", " \n", "
To prevent automated spam submissions leave this field empty.
\n", "
\n", "
\n", "

\n", "
\n", " \n", " \n", "
\n", "
\n", "
\n", " 101913/81551\n", "
\n", "
\n", "
\n", " \n", " \n", " \n", " \n", " Time Magazine \n", " \n", " \"AllSides \n", " \n", "
\n", "
\n", "
\n", " 9666/8138\n", "
\n", "
\n", "
\n", "
\n", "

How do you think the bias of this source should be rated?

\n", "
\n", "
\n", " \n", "
\n", "
\n", "
\n", " \n", "
\n", " \n", " \n", "
To prevent automated spam submissions leave this field empty.
\n", "
\n", "
\n", "

\n", "
\n", " \n", " \n", "
\n", "
\n", "
\n", " 9666/8138\n", "
\n", "
\n", "
\n", " \n", " \n", " \n", " \n", " USA TODAY \n", " \n", " \"AllSides \n", " \n", "
\n", "
\n", "
\n", " 18898/21151\n", "
\n", "
\n", "
\n", "
\n", "

How do you think the bias of this source should be rated?

\n", "
\n", "
\n", " \n", "
\n", "
\n", "
\n", " \n", "
\n", " \n", " \n", "
To prevent automated spam submissions leave this field empty.
\n", "
\n", "
\n", "

\n", "
\n", " \n", " \n", "
\n", "
\n", "
\n", " 18898/21151\n", "
\n", "
\n", "
\n", " \n", " \n", " \n", " \n", " Vox \n", " \n", " \"AllSides \n", " \n", "
\n", "
\n", "
\n", " 30416/15165\n", "
\n", "
\n", "
\n", "
\n", "

How do you think the bias of this source should be rated?

\n", "
\n", "
\n", " \n", "
\n", "
\n", "
\n", " \n", "
\n", " \n", " \n", "
To prevent automated spam submissions leave this field empty.
\n", "
\n", "
\n", "

\n", "
\n", " \n", " \n", "
\n", "
\n", "
\n", " 30416/15165\n", "
\n", "
\n", "
\n", " \n", " \n", " \n", " \n", " Wall Street Journal (News) \n", " \n", " \"AllSides \n", " \n", "
\n", "
\n", "
\n", " 22701/25408\n", "
\n", "
\n", "
\n", "
\n", "

How do you think the bias of this source should be rated?

\n", "
\n", "
\n", " \n", "
\n", "
\n", "
\n", " \n", "
\n", " \n", " \n", "
To prevent automated spam submissions leave this field empty.
\n", "
\n", "
\n", "

\n", "
\n", " \n", " \n", "
\n", "
\n", "
\n", " 22701/25408\n", "
\n", "
\n", "
\n", " \n", " \n", " \n", " \n", " Wall Street Journal (Opinion) \n", " \n", " \"AllSides \n", " \n", "
\n", "
\n", "
\n", " 11506/7677\n", "
\n", "
\n", "
\n", "
\n", "

How do you think the bias of this source should be rated?

\n", "
\n", "
\n", " \n", "
\n", "
\n", "
\n", " \n", "
\n", " \n", " \n", "
To prevent automated spam submissions leave this field empty.
\n", "
\n", "
\n", "

\n", "
\n", " \n", " \n", "
\n", "
\n", "
\n", " 11506/7677\n", "
\n", "
\n", "
\n", " \n", " \n", " ]" ] }, "execution_count": 11, "metadata": {}, "output_type": "execute_result" } ], "source": [ "soup.select('tbody')" ] }, { "cell_type": "code", "execution_count": 12, "id": "e90a8166-573c-4c7e-b1bb-e2bb9fe356e1", "metadata": {}, "outputs": [], "source": [ "# en cada un de los tr de tbody están las líneas de la tabla\n", "rows = soup.select('tbody tr')" ] }, { "cell_type": "code", "execution_count": 13, "id": "f0d2f212-d61e-42c4-920b-d021e631d0e0", "metadata": { "scrolled": true, "tags": [] }, "outputs": [ { "data": { "text/plain": [ "[\n", " \n", " ABC News (Online) \n", " \n", " \"AllSides \n", " \n", "
\n", "
\n", "
\n", " 36820/18558\n", "
\n", "
\n", "
\n", "
\n", "

How do you think the bias of this source should be rated?

\n", "
\n", "
\n", " \n", "
\n", "
\n", "
\n", " \n", "
\n", " \n", " \n", "
To prevent automated spam submissions leave this field empty.
\n", "
\n", "
\n", "

\n", "
\n", " \n", " \n", "
\n", "
\n", "
\n", " 36820/18558\n", "
\n", "
\n", "
\n", " \n", " ,\n", " \n", " \n", " AlterNet \n", " \n", " \"AllSides \n", " \n", "
\n", "
\n", "
\n", " 14432/3158\n", "
\n", "
\n", "
\n", "
\n", "

How do you think the bias of this source should be rated?

\n", "
\n", "
\n", " \n", "
\n", "
\n", "
\n", " \n", "
\n", " \n", " \n", "
To prevent automated spam submissions leave this field empty.
\n", "
\n", "
\n", "

\n", "
\n", " \n", " \n", "
\n", "
\n", "
\n", " 14432/3158\n", "
\n", "
\n", "
\n", " \n", " ,\n", " \n", " \n", " Associated Press \n", " \n", " \"AllSides \n", " \n", "
\n", "
\n", "
\n", " 27946/21821\n", "
\n", "
\n", "
\n", "
\n", "

How do you think the bias of this source should be rated?

\n", "
\n", "
\n", " \n", "
\n", "
\n", "
\n", " \n", "
\n", " \n", " \n", "
To prevent automated spam submissions leave this field empty.
\n", "
\n", "
\n", "

\n", "
\n", " \n", " \n", "
\n", "
\n", "
\n", " 27946/21821\n", "
\n", "
\n", "
\n", " \n", " ,\n", " \n", " \n", " Axios \n", " \n", " \"AllSides \n", " \n", "
\n", "
\n", "
\n", " 6663/7172\n", "
\n", "
\n", "
\n", "
\n", "

How do you think the bias of this source should be rated?

\n", "
\n", "
\n", " \n", "
\n", "
\n", "
\n", " \n", "
\n", " \n", " \n", "
To prevent automated spam submissions leave this field empty.
\n", "
\n", "
\n", "

\n", "
\n", " \n", " \n", "
\n", "
\n", "
\n", " 6663/7172\n", "
\n", "
\n", "
\n", " \n", " ,\n", " \n", " \n", " BBC News \n", " \n", " \"AllSides \n", " \n", "
\n", "
\n", "
\n", " 30429/26136\n", "
\n", "
\n", "
\n", "
\n", "

How do you think the bias of this source should be rated?

\n", "
\n", "
\n", " \n", "
\n", "
\n", "
\n", " \n", "
\n", " \n", " \n", "
To prevent automated spam submissions leave this field empty.
\n", "
\n", "
\n", "

\n", "
\n", " \n", " \n", "
\n", "
\n", "
\n", " 30429/26136\n", "
\n", "
\n", "
\n", " \n", " ,\n", " \n", " \n", " Bloomberg \n", " \n", " \"AllSides \n", " \n", "
\n", "
\n", "
\n", " 16528/21651\n", "
\n", "
\n", "
\n", "
\n", "

How do you think the bias of this source should be rated?

\n", "
\n", "
\n", " \n", "
\n", "
\n", "
\n", " \n", "
\n", " \n", " \n", "
To prevent automated spam submissions leave this field empty.
\n", "
\n", "
\n", "

\n", "
\n", " \n", " \n", "
\n", "
\n", "
\n", " 16528/21651\n", "
\n", "
\n", "
\n", " \n", " ,\n", " \n", " \n", " Breitbart News \n", " \n", " \"AllSides \n", " \n", "
\n", "
\n", "
\n", " 40629/11439\n", "
\n", "
\n", "
\n", "
\n", "

How do you think the bias of this source should be rated?

\n", "
\n", "
\n", " \n", "
\n", "
\n", "
\n", " \n", "
\n", " \n", " \n", "
To prevent automated spam submissions leave this field empty.
\n", "
\n", "
\n", "

\n", "
\n", " \n", " \n", "
\n", "
\n", "
\n", " 40629/11439\n", "
\n", "
\n", "
\n", " \n", " ,\n", " \n", " \n", " BuzzFeed News \n", " \n", " \"AllSides \n", " \n", "
\n", "
\n", "
\n", " 25760/9402\n", "
\n", "
\n", "
\n", "
\n", "

How do you think the bias of this source should be rated?

\n", "
\n", "
\n", " \n", "
\n", "
\n", "
\n", " \n", "
\n", " \n", " \n", "
To prevent automated spam submissions leave this field empty.
\n", "
\n", "
\n", "

\n", "
\n", " \n", " \n", "
\n", "
\n", "
\n", " 25760/9402\n", "
\n", "
\n", "
\n", " \n", " ,\n", " \n", " \n", " CBS News (Online) \n", " \n", " \"AllSides \n", " \n", "
\n", "
\n", "
\n", " 19605/12502\n", "
\n", "
\n", "
\n", "
\n", "

How do you think the bias of this source should be rated?

\n", "
\n", "
\n", " \n", "
\n", "
\n", "
\n", " \n", "
\n", " \n", " \n", "
To prevent automated spam submissions leave this field empty.
\n", "
\n", "
\n", "

\n", "
\n", " \n", " \n", "
\n", "
\n", "
\n", " 19605/12502\n", "
\n", "
\n", "
\n", " \n", " ,\n", " \n", " \n", " Christian Science Monitor \n", " \n", " \"AllSides \n", " \n", "
\n", "
\n", "
\n", " 16061/19652\n", "
\n", "
\n", "
\n", "
\n", "

How do you think the bias of this source should be rated?

\n", "
\n", "
\n", " \n", "
\n", "
\n", "
\n", " \n", "
\n", " \n", " \n", "
To prevent automated spam submissions leave this field empty.
\n", "
\n", "
\n", "

\n", "
\n", " \n", " \n", "
\n", "
\n", "
\n", " 16061/19652\n", "
\n", "
\n", "
\n", " \n", " ,\n", " \n", " \n", " CNN (Online News) \n", " \n", " \"AllSides \n", " \n", "
\n", "
\n", "
\n", " 53113/48559\n", "
\n", "
\n", "
\n", "
\n", "

How do you think the bias of this source should be rated?

\n", "
\n", "
\n", " \n", "
\n", "
\n", "
\n", " \n", "
\n", " \n", " \n", "
To prevent automated spam submissions leave this field empty.
\n", "
\n", "
\n", "

\n", "
\n", " \n", " \n", "
\n", "
\n", "
\n", " 53113/48559\n", "
\n", "
\n", "
\n", " \n", " ,\n", " \n", " \n", " CNN (Opinion) \n", " \n", " \"AllSides \n", " \n", "
\n", "
\n", "
\n", " 35060/7740\n", "
\n", "
\n", "
\n", "
\n", "

How do you think the bias of this source should be rated?

\n", "
\n", "
\n", " \n", "
\n", "
\n", "
\n", " \n", "
\n", " \n", " \n", "
To prevent automated spam submissions leave this field empty.
\n", "
\n", "
\n", "

\n", "
\n", " \n", " \n", "
\n", "
\n", "
\n", " 35060/7740\n", "
\n", "
\n", "
\n", " \n", " ,\n", " \n", " \n", " Daily Beast \n", " \n", " \"AllSides \n", " \n", "
\n", "
\n", "
\n", " 20245/6297\n", "
\n", "
\n", "
\n", "
\n", "

How do you think the bias of this source should be rated?

\n", "
\n", "
\n", " \n", "
\n", "
\n", "
\n", " \n", "
\n", " \n", " \n", "
To prevent automated spam submissions leave this field empty.
\n", "
\n", "
\n", "

\n", "
\n", " \n", " \n", "
\n", "
\n", "
\n", " 20245/6297\n", "
\n", "
\n", "
\n", " \n", " ,\n", " \n", " \n", " Daily Mail \n", " \n", " \"AllSides \n", " \n", "
\n", "
\n", "
\n", " 12503/6816\n", "
\n", "
\n", "
\n", "
\n", "

How do you think the bias of this source should be rated?

\n", "
\n", "
\n", " \n", "
\n", "
\n", "
\n", " \n", "
\n", " \n", " \n", "
To prevent automated spam submissions leave this field empty.
\n", "
\n", "
\n", "

\n", "
\n", " \n", " \n", "
\n", "
\n", "
\n", " 12503/6816\n", "
\n", "
\n", "
\n", " \n", " ,\n", " \n", " \n", " Democracy Now \n", " \n", " \"AllSides \n", " \n", "
\n", "
\n", "
\n", " 13804/3188\n", "
\n", "
\n", "
\n", "
\n", "

How do you think the bias of this source should be rated?

\n", "
\n", "
\n", " \n", "
\n", "
\n", "
\n", " \n", "
\n", " \n", " \n", "
To prevent automated spam submissions leave this field empty.
\n", "
\n", "
\n", "

\n", "
\n", " \n", " \n", "
\n", "
\n", "
\n", " 13804/3188\n", "
\n", "
\n", "
\n", " \n", " ,\n", " \n", " \n", " Forbes \n", " \n", " \"AllSides \n", " \n", "
\n", "
\n", "
\n", " 14329/9059\n", "
\n", "
\n", "
\n", "
\n", "

How do you think the bias of this source should be rated?

\n", "
\n", "
\n", " \n", "
\n", "
\n", "
\n", " \n", "
\n", " \n", " \n", "
To prevent automated spam submissions leave this field empty.
\n", "
\n", "
\n", "

\n", "
\n", " \n", " \n", "
\n", "
\n", "
\n", " 14329/9059\n", "
\n", "
\n", "
\n", " \n", " ,\n", " \n", " \n", " Fox News (Online News) \n", " \n", " \"AllSides \n", " \n", "
\n", "
\n", "
\n", " 43738/48774\n", "
\n", "
\n", "
\n", "
\n", "

How do you think the bias of this source should be rated?

\n", "
\n", "
\n", " \n", "
\n", "
\n", "
\n", " \n", "
\n", " \n", " \n", "
To prevent automated spam submissions leave this field empty.
\n", "
\n", "
\n", "

\n", "
\n", " \n", " \n", "
\n", "
\n", "
\n", " 43738/48774\n", "
\n", "
\n", "
\n", " \n", " ,\n", " \n", " \n", " Fox News (Opinion) \n", " \n", " \"AllSides \n", " \n", "
\n", "
\n", "
\n", " 29609/6877\n", "
\n", "
\n", "
\n", "
\n", "

How do you think the bias of this source should be rated?

\n", "
\n", "
\n", " \n", "
\n", "
\n", "
\n", " \n", "
\n", " \n", " \n", "
To prevent automated spam submissions leave this field empty.
\n", "
\n", "
\n", "

\n", "
\n", " \n", " \n", "
\n", "
\n", "
\n", " 29609/6877\n", "
\n", "
\n", "
\n", " \n", " ,\n", " \n", " \n", " HuffPost \n", " \n", " \"AllSides \n", " \n", "
\n", "
\n", "
\n", " 36265/22414\n", "
\n", "
\n", "
\n", "
\n", "

How do you think the bias of this source should be rated?

\n", "
\n", "
\n", " \n", "
\n", "
\n", "
\n", " \n", "
\n", " \n", " \n", "
To prevent automated spam submissions leave this field empty.
\n", "
\n", "
\n", "

\n", "
\n", " \n", " \n", "
\n", "
\n", "
\n", " 36265/22414\n", "
\n", "
\n", "
\n", " \n", " ,\n", " \n", " \n", " Mother Jones \n", " \n", " \"AllSides \n", " \n", "
\n", "
\n", "
\n", " 15852/2354\n", "
\n", "
\n", "
\n", "
\n", "

How do you think the bias of this source should be rated?

\n", "
\n", "
\n", " \n", "
\n", "
\n", "
\n", " \n", "
\n", " \n", " \n", "
To prevent automated spam submissions leave this field empty.
\n", "
\n", "
\n", "

\n", "
\n", " \n", " \n", "
\n", "
\n", "
\n", " 15852/2354\n", "
\n", "
\n", "
\n", " \n", " ,\n", " \n", " \n", " MSNBC \n", " \n", " \"AllSides \n", " \n", "
\n", "
\n", "
\n", " 22074/5663\n", "
\n", "
\n", "
\n", "
\n", "

How do you think the bias of this source should be rated?

\n", "
\n", "
\n", " \n", "
\n", "
\n", "
\n", " \n", "
\n", " \n", " \n", "
To prevent automated spam submissions leave this field empty.
\n", "
\n", "
\n", "

\n", "
\n", " \n", " \n", "
\n", "
\n", "
\n", " 22074/5663\n", "
\n", "
\n", "
\n", " \n", " ,\n", " \n", " \n", " National Review \n", " \n", " \"AllSides \n", " \n", "
\n", "
\n", "
\n", " 19487/7970\n", "
\n", "
\n", "
\n", "
\n", "

How do you think the bias of this source should be rated?

\n", "
\n", "
\n", " \n", "
\n", "
\n", "
\n", " \n", "
\n", " \n", " \n", "
To prevent automated spam submissions leave this field empty.
\n", "
\n", "
\n", "

\n", "
\n", " \n", " \n", "
\n", "
\n", "
\n", " 19487/7970\n", "
\n", "
\n", "
\n", " \n", " ,\n", " \n", " \n", " NBC News (Online) \n", " \n", " \"AllSides \n", " \n", "
\n", "
\n", "
\n", " 12559/12253\n", "
\n", "
\n", "
\n", "
\n", "

How do you think the bias of this source should be rated?

\n", "
\n", "
\n", " \n", "
\n", "
\n", "
\n", " \n", "
\n", " \n", " \n", "
To prevent automated spam submissions leave this field empty.
\n", "
\n", "
\n", "

\n", "
\n", " \n", " \n", "
\n", "
\n", "
\n", " 12559/12253\n", "
\n", "
\n", "
\n", " \n", " ,\n", " \n", " \n", " New York Post (News) \n", " \n", " \"AllSides \n", " \n", "
\n", "
\n", "
\n", " 14941/7921\n", "
\n", "
\n", "
\n", "
\n", "

How do you think the bias of this source should be rated?

\n", "
\n", "
\n", " \n", "
\n", "
\n", "
\n", " \n", "
\n", " \n", " \n", "
To prevent automated spam submissions leave this field empty.
\n", "
\n", "
\n", "

\n", "
\n", " \n", " \n", "
\n", "
\n", "
\n", " 14941/7921\n", "
\n", "
\n", "
\n", " \n", " ,\n", " \n", " \n", " New York Times (News) \n", " \n", " \"AllSides \n", " \n", "
\n", "
\n", "
\n", " 29908/39740\n", "
\n", "
\n", "
\n", "
\n", "

How do you think the bias of this source should be rated?

\n", "
\n", "
\n", " \n", "
\n", "
\n", "
\n", " \n", "
\n", " \n", " \n", "
To prevent automated spam submissions leave this field empty.
\n", "
\n", "
\n", "

\n", "
\n", " \n", " \n", "
\n", "
\n", "
\n", " 29908/39740\n", "
\n", "
\n", "
\n", " \n", " ,\n", " \n", " \n", " New York Times (Opinion) \n", " \n", " \"AllSides \n", " \n", "
\n", "
\n", "
\n", " 15106/4123\n", "
\n", "
\n", "
\n", "
\n", "

How do you think the bias of this source should be rated?

\n", "
\n", "
\n", " \n", "
\n", "
\n", "
\n", " \n", "
\n", " \n", " \n", "
To prevent automated spam submissions leave this field empty.
\n", "
\n", "
\n", "

\n", "
\n", " \n", " \n", "
\n", "
\n", "
\n", " 15106/4123\n", "
\n", "
\n", "
\n", " \n", " ,\n", " \n", " \n", " Newsweek \n", " \n", " \"AllSides \n", " \n", "
\n", "
\n", "
\n", " 3598/5745\n", "
\n", "
\n", "
\n", "
\n", "

How do you think the bias of this source should be rated?

\n", "
\n", "
\n", " \n", "
\n", "
\n", "
\n", " \n", "
\n", " \n", " \n", "
To prevent automated spam submissions leave this field empty.
\n", "
\n", "
\n", "

\n", "
\n", " \n", " \n", "
\n", "
\n", "
\n", " 3598/5745\n", "
\n", "
\n", "
\n", " \n", " ,\n", " \n", " \n", " NPR (Online News) \n", " \n", " \"AllSides \n", " \n", "
\n", "
\n", "
\n", " 32462/31626\n", "
\n", "
\n", "
\n", "
\n", "

How do you think the bias of this source should be rated?

\n", "
\n", "
\n", " \n", "
\n", "
\n", "
\n", " \n", "
\n", " \n", " \n", "
To prevent automated spam submissions leave this field empty.
\n", "
\n", "
\n", "

\n", "
\n", " \n", " \n", "
\n", "
\n", "
\n", " 32462/31626\n", "
\n", "
\n", "
\n", " \n", " ,\n", " \n", " \n", " NPR (Opinion) \n", " \n", " \"AllSides \n", " \n", "
\n", "
\n", "
\n", " 8846/10096\n", "
\n", "
\n", "
\n", "
\n", "

How do you think the bias of this source should be rated?

\n", "
\n", "
\n", " \n", "
\n", "
\n", "
\n", " \n", "
\n", " \n", " \n", "
To prevent automated spam submissions leave this field empty.
\n", "
\n", "
\n", "

\n", "
\n", " \n", " \n", "
\n", "
\n", "
\n", " 8846/10096\n", "
\n", "
\n", "
\n", " \n", " ,\n", " \n", " \n", " Politico \n", " \n", " \"AllSides \n", " \n", "
\n", "
\n", "
\n", " 23899/30764\n", "
\n", "
\n", "
\n", "
\n", "

How do you think the bias of this source should be rated?

\n", "
\n", "
\n", " \n", "
\n", "
\n", "
\n", " \n", "
\n", " \n", " \n", "
To prevent automated spam submissions leave this field empty.
\n", "
\n", "
\n", "

\n", "
\n", " \n", " \n", "
\n", "
\n", "
\n", " 23899/30764\n", "
\n", "
\n", "
\n", " \n", " ,\n", " \n", " \n", " Reason \n", " \n", " \"AllSides \n", " \n", "
\n", "
\n", "
\n", " 9719/5930\n", "
\n", "
\n", "
\n", "
\n", "

How do you think the bias of this source should be rated?

\n", "
\n", "
\n", " \n", "
\n", "
\n", "
\n", " \n", "
\n", " \n", " \n", "
To prevent automated spam submissions leave this field empty.
\n", "
\n", "
\n", "

\n", "
\n", " \n", " \n", "
\n", "
\n", "
\n", " 9719/5930\n", "
\n", "
\n", "
\n", " \n", " ,\n", " \n", " \n", " Reuters \n", " \n", " \"AllSides \n", " \n", "
\n", "
\n", "
\n", " 18851/10712\n", "
\n", "
\n", "
\n", "
\n", "

How do you think the bias of this source should be rated?

\n", "
\n", "
\n", " \n", "
\n", "
\n", "
\n", " \n", "
\n", " \n", " \n", "
To prevent automated spam submissions leave this field empty.
\n", "
\n", "
\n", "

\n", "
\n", " \n", " \n", "
\n", "
\n", "
\n", " 18851/10712\n", "
\n", "
\n", "
\n", " \n", " ,\n", " \n", " \n", " Slate \n", " \n", " \"AllSides \n", " \n", "
\n", "
\n", "
\n", " 9950/3604\n", "
\n", "
\n", "
\n", "
\n", "

How do you think the bias of this source should be rated?

\n", "
\n", "
\n", " \n", "
\n", "
\n", "
\n", " \n", "
\n", " \n", " \n", "
To prevent automated spam submissions leave this field empty.
\n", "
\n", "
\n", "

\n", "
\n", " \n", " \n", "
\n", "
\n", "
\n", " 9950/3604\n", "
\n", "
\n", "
\n", " \n", " ,\n", " \n", " \n", " The American Spectator \n", " \n", " \"AllSides \n", " \n", "
\n", "
\n", "
\n", " 12212/4261\n", "
\n", "
\n", "
\n", "
\n", "

How do you think the bias of this source should be rated?

\n", "
\n", "
\n", " \n", "
\n", "
\n", "
\n", " \n", "
\n", " \n", " \n", "
To prevent automated spam submissions leave this field empty.
\n", "
\n", "
\n", "

\n", "
\n", " \n", " \n", "
\n", "
\n", "
\n", " 12212/4261\n", "
\n", "
\n", "
\n", " \n", " ,\n", " \n", " \n", " The Atlantic \n", " \n", " \"AllSides \n", " \n", "
\n", "
\n", "
\n", " 15167/8384\n", "
\n", "
\n", "
\n", "
\n", "

How do you think the bias of this source should be rated?

\n", "
\n", "
\n", " \n", "
\n", "
\n", "
\n", " \n", "
\n", " \n", " \n", "
To prevent automated spam submissions leave this field empty.
\n", "
\n", "
\n", "

\n", "
\n", " \n", " \n", "
\n", "
\n", "
\n", " 15167/8384\n", "
\n", "
\n", "
\n", " \n", " ,\n", " \n", " \n", " The Daily Caller \n", " \n", " \"AllSides \n", " \n", "
\n", "
\n", "
\n", " 10314/4117\n", "
\n", "
\n", "
\n", "
\n", "

How do you think the bias of this source should be rated?

\n", "
\n", "
\n", " \n", "
\n", "
\n", "
\n", " \n", "
\n", " \n", " \n", "
To prevent automated spam submissions leave this field empty.
\n", "
\n", "
\n", "

\n", "
\n", " \n", " \n", "
\n", "
\n", "
\n", " 10314/4117\n", "
\n", "
\n", "
\n", " \n", " ,\n", " \n", " \n", " The Daily Wire \n", " \n", " \"AllSides \n", " \n", "
\n", "
\n", "
\n", " 11239/4030\n", "
\n", "
\n", "
\n", "
\n", "

How do you think the bias of this source should be rated?

\n", "
\n", "
\n", " \n", "
\n", "
\n", "
\n", " \n", "
\n", " \n", " \n", "
To prevent automated spam submissions leave this field empty.
\n", "
\n", "
\n", "

\n", "
\n", " \n", " \n", "
\n", "
\n", "
\n", " 11239/4030\n", "
\n", "
\n", "
\n", " \n", " ,\n", " \n", " \n", " The Economist \n", " \n", " \"AllSides \n", " \n", "
\n", "
\n", "
\n", " 6174/10483\n", "
\n", "
\n", "
\n", "
\n", "

How do you think the bias of this source should be rated?

\n", "
\n", "
\n", " \n", "
\n", "
\n", "
\n", " \n", "
\n", " \n", " \n", "
To prevent automated spam submissions leave this field empty.
\n", "
\n", "
\n", "

\n", "
\n", " \n", " \n", "
\n", "
\n", "
\n", " 6174/10483\n", "
\n", "
\n", "
\n", " \n", " ,\n", " \n", " \n", " The Epoch Times \n", " \n", " \"AllSides \n", " \n", "
\n", "
\n", "
\n", " 11763/5857\n", "
\n", "
\n", "
\n", "
\n", "

How do you think the bias of this source should be rated?

\n", "
\n", "
\n", " \n", "
\n", "
\n", "
\n", " \n", "
\n", " \n", " \n", "
To prevent automated spam submissions leave this field empty.
\n", "
\n", "
\n", "

\n", "
\n", " \n", " \n", "
\n", "
\n", "
\n", " 11763/5857\n", "
\n", "
\n", "
\n", " \n", " ,\n", " \n", " \n", " The Federalist \n", " \n", " \"AllSides \n", " \n", "
\n", "
\n", "
\n", " 9502/2926\n", "
\n", "
\n", "
\n", "
\n", "

How do you think the bias of this source should be rated?

\n", "
\n", "
\n", " \n", "
\n", "
\n", "
\n", " \n", "
\n", " \n", " \n", "
To prevent automated spam submissions leave this field empty.
\n", "
\n", "
\n", "

\n", "
\n", " \n", " \n", "
\n", "
\n", "
\n", " 9502/2926\n", "
\n", "
\n", "
\n", " \n", " ,\n", " \n", " \n", " The Guardian \n", " \n", " \"AllSides \n", " \n", "
\n", "
\n", "
\n", " 14113/8671\n", "
\n", "
\n", "
\n", "
\n", "

How do you think the bias of this source should be rated?

\n", "
\n", "
\n", " \n", "
\n", "
\n", "
\n", " \n", "
\n", " \n", " \n", "
To prevent automated spam submissions leave this field empty.
\n", "
\n", "
\n", "

\n", "
\n", " \n", " \n", "
\n", "
\n", "
\n", " 14113/8671\n", "
\n", "
\n", "
\n", " \n", " ,\n", " \n", " \n", " The Hill \n", " \n", " \"AllSides \n", " \n", "
\n", "
\n", "
\n", " 16634/22359\n", "
\n", "
\n", "
\n", "
\n", "

How do you think the bias of this source should be rated?

\n", "
\n", "
\n", " \n", "
\n", "
\n", "
\n", " \n", "
\n", " \n", " \n", "
To prevent automated spam submissions leave this field empty.
\n", "
\n", "
\n", "

\n", "
\n", " \n", " \n", "
\n", "
\n", "
\n", " 16634/22359\n", "
\n", "
\n", "
\n", " \n", " ,\n", " \n", " \n", " The Intercept \n", " \n", " \"AllSides \n", " \n", "
\n", "
\n", "
\n", " 5804/1729\n", "
\n", "
\n", "
\n", "
\n", "

How do you think the bias of this source should be rated?

\n", "
\n", "
\n", " \n", "
\n", "
\n", "
\n", " \n", "
\n", " \n", " \n", "
To prevent automated spam submissions leave this field empty.
\n", "
\n", "
\n", "

\n", "
\n", " \n", " \n", "
\n", "
\n", "
\n", " 5804/1729\n", "
\n", "
\n", "
\n", " \n", " ,\n", " \n", " \n", " The New Yorker \n", " \n", " \"AllSides \n", " \n", "
\n", "
\n", "
\n", " 9891/2398\n", "
\n", "
\n", "
\n", "
\n", "

How do you think the bias of this source should be rated?

\n", "
\n", "
\n", " \n", "
\n", "
\n", "
\n", " \n", "
\n", " \n", " \n", "
To prevent automated spam submissions leave this field empty.
\n", "
\n", "
\n", "

\n", "
\n", " \n", " \n", "
\n", "
\n", "
\n", " 9891/2398\n", "
\n", "
\n", "
\n", " \n", " ,\n", " \n", " \n", " TheBlaze.com \n", " \n", " \"AllSides \n", " \n", "
\n", "
\n", "
\n", " 101913/81551\n", "
\n", "
\n", "
\n", "
\n", "

How do you think the bias of this source should be rated?

\n", "
\n", "
\n", " \n", "
\n", "
\n", "
\n", " \n", "
\n", " \n", " \n", "
To prevent automated spam submissions leave this field empty.
\n", "
\n", "
\n", "

\n", "
\n", " \n", " \n", "
\n", "
\n", "
\n", " 101913/81551\n", "
\n", "
\n", "
\n", " \n", " ,\n", " \n", " \n", " Time Magazine \n", " \n", " \"AllSides \n", " \n", "
\n", "
\n", "
\n", " 9666/8138\n", "
\n", "
\n", "
\n", "
\n", "

How do you think the bias of this source should be rated?

\n", "
\n", "
\n", " \n", "
\n", "
\n", "
\n", " \n", "
\n", " \n", " \n", "
To prevent automated spam submissions leave this field empty.
\n", "
\n", "
\n", "

\n", "
\n", " \n", " \n", "
\n", "
\n", "
\n", " 9666/8138\n", "
\n", "
\n", "
\n", " \n", " ,\n", " \n", " \n", " USA TODAY \n", " \n", " \"AllSides \n", " \n", "
\n", "
\n", "
\n", " 18898/21151\n", "
\n", "
\n", "
\n", "
\n", "

How do you think the bias of this source should be rated?

\n", "
\n", "
\n", " \n", "
\n", "
\n", "
\n", " \n", "
\n", " \n", " \n", "
To prevent automated spam submissions leave this field empty.
\n", "
\n", "
\n", "

\n", "
\n", " \n", " \n", "
\n", "
\n", "
\n", " 18898/21151\n", "
\n", "
\n", "
\n", " \n", " ,\n", " \n", " \n", " Vox \n", " \n", " \"AllSides \n", " \n", "
\n", "
\n", "
\n", " 30416/15165\n", "
\n", "
\n", "
\n", "
\n", "

How do you think the bias of this source should be rated?

\n", "
\n", "
\n", " \n", "
\n", "
\n", "
\n", " \n", "
\n", " \n", " \n", "
To prevent automated spam submissions leave this field empty.
\n", "
\n", "
\n", "

\n", "
\n", " \n", " \n", "
\n", "
\n", "
\n", " 30416/15165\n", "
\n", "
\n", "
\n", " \n", " ,\n", " \n", " \n", " Wall Street Journal (News) \n", " \n", " \"AllSides \n", " \n", "
\n", "
\n", "
\n", " 22701/25408\n", "
\n", "
\n", "
\n", "
\n", "

How do you think the bias of this source should be rated?

\n", "
\n", "
\n", " \n", "
\n", "
\n", "
\n", " \n", "
\n", " \n", " \n", "
To prevent automated spam submissions leave this field empty.
\n", "
\n", "
\n", "

\n", "
\n", " \n", " \n", "
\n", "
\n", "
\n", " 22701/25408\n", "
\n", "
\n", "
\n", " \n", " ,\n", " \n", " \n", " Wall Street Journal (Opinion) \n", " \n", " \"AllSides \n", " \n", "
\n", "
\n", "
\n", " 11506/7677\n", "
\n", "
\n", "
\n", "
\n", "

How do you think the bias of this source should be rated?

\n", "
\n", "
\n", " \n", "
\n", "
\n", "
\n", " \n", "
\n", " \n", " \n", "
To prevent automated spam submissions leave this field empty.
\n", "
\n", "
\n", "

\n", "
\n", " \n", " \n", "
\n", "
\n", "
\n", " 11506/7677\n", "
\n", "
\n", "
\n", " \n", " ]" ] }, "execution_count": 13, "metadata": {}, "output_type": "execute_result" } ], "source": [ "rows" ] }, { "cell_type": "markdown", "id": "38938a15-c6e8-4d31-ad5e-74e1471a4091", "metadata": {}, "source": [ "### Extracción de los elementos de la tabla" ] }, { "cell_type": "code", "execution_count": 14, "id": "daa0e3b3-07f1-47fb-b661-7f041c48ba82", "metadata": {}, "outputs": [ { "name": "stdout", "output_type": "stream", "text": [ "\n", "ABC News (Online) \n", "\n", "ABC News (Online)\n" ] } ], "source": [ "# La primera celda de la tabla que queremos extraer está bajo la clase 'views-field views-field-title source-title'\n", "row = rows[0]\n", "medio = row.select_one('.source-title')\n", "medio2 = row.select_one('.source-title').text.strip()\n", "print(medio,\"\\n\")\n", "print(medio2)\n", "\n", "# También habríamos podido seleccionar el texto así: texto = row.select_one('.views-field.views-field-title.source-title')" ] }, { "cell_type": "code", "execution_count": 15, "id": "0840c4f8-ec35-499c-bd5b-f824a783b835", "metadata": { "jupyter": { "source_hidden": true }, "scrolled": true, "tags": [] }, "outputs": [ { "data": { "text/plain": [ "\n", "\n", "ABC News (Online) \n", "\n", "\"AllSides \n", "\n", "
\n", "
\n", "
\n", "36820/18558\n", "
\n", "
\n", "
\n", "
\n", "

How do you think the bias of this source should be rated?

\n", "
\n", "
\n", "\n", "
\n", "
\n", "
\n", "\n", "
\n", "\n", "\n", "
To prevent automated spam submissions leave this field empty.
\n", "
\n", "
\n", "

\n", "
\n", "\n", "\n", "
\n", "
\n", "
\n", "36820/18558\n", "
\n", "
\n", "
\n", "\n", "" ] }, "execution_count": 15, "metadata": {}, "output_type": "execute_result" } ], "source": [ "row" ] }, { "cell_type": "code", "execution_count": 16, "id": "429c3953-615a-4a8b-8c86-010cfd53ef1a", "metadata": {}, "outputs": [ { "data": { "text/plain": [ "'ABC News (Online)'" ] }, "execution_count": 16, "metadata": {}, "output_type": "execute_result" } ], "source": [ "row.select_one('.views-field').text.strip()" ] }, { "cell_type": "code", "execution_count": 17, "id": "fe049802-5675-4738-96fc-5eee76087d3e", "metadata": {}, "outputs": [ { "name": "stdout", "output_type": "stream", "text": [ "\n", "ABC News (Online) \n", "/news-source/abc-news-media-bias\n" ] } ], "source": [ "# En este objeto y href, tenemos la ruta relativa (la url parcial) para acceder al recurso (la página donde se aloja).\n", "ruta_relativa = row.select_one('.source-title a')['href']\n", "print(row.select_one('.source-title'))\n", "print(ruta_relativa)" ] }, { "cell_type": "code", "execution_count": 18, "id": "20b59f1e-6300-4fa8-9be5-31280f69e254", "metadata": {}, "outputs": [ { "name": "stdout", "output_type": "stream", "text": [ "/media-bias/left-center\n", "left-center\n" ] } ], "source": [ "# El siguiente elemento de la tabla es una imagen. Extraemos el dato que está contenido en la url. Cada url carga una imagen distinta.\n", "imagen = row.select_one('.views-field-field-bias-image a')['href']\n", "print(imagen)\n", "imagen = imagen.split('/')[-1]\n", "print(imagen)" ] }, { "cell_type": "code", "execution_count": 95, "id": "02b43018-9d54-4c52-aa69-47e862165d75", "metadata": {}, "outputs": [], "source": [ "# Ya tenemos el dato." ] }, { "cell_type": "code", "execution_count": 19, "id": "4de04334-e147-4dcf-a857-68edd4a41017", "metadata": {}, "outputs": [ { "name": "stdout", "output_type": "stream", "text": [ "Acuerdo: 36820, Desacuerdo: 18558, Ratio 1.984\n" ] } ], "source": [ "# Extraemos ahora el feedback por fila\n", "acuerdo = row.select_one('.agree').text\n", "acuerdo = int(acuerdo)\n", "\n", "desacuerdo = row.select_one('.disagree').text\n", "desacuerdo = int(desacuerdo)\n", "\n", "ratio_acuerdo = acuerdo / desacuerdo\n", "\n", "print(f\"Acuerdo: {acuerdo}, Desacuerdo: {desacuerdo}, Ratio {ratio_acuerdo:.3f}\")\n" ] }, { "cell_type": "code", "execution_count": 20, "id": "1428e1c7-0e14-490b-b880-0bb76f1f1324", "metadata": {}, "outputs": [ { "name": "stdout", "output_type": "stream", "text": [ "None\n" ] } ], "source": [ "# Nos falta un elemento por extraer, el texto a la derecha en Community feedback\n", "print(row.select_one('.community-feedback-rating-page'))" ] }, { "cell_type": "code", "execution_count": 103, "id": "bf9258dc-311a-4b3e-8586-614025e556b4", "metadata": {}, "outputs": [], "source": [ "#¿Qué está pasando? Mirar -> div class=\"community-feedback-rating-page\" > == $0\n", "# El dato se genera al vuelo mediante js\n", "# requests no puede lidiar con este tipo de dato.\n" ] }, { "cell_type": "code", "execution_count": 21, "id": "4bbcc590-1bca-46ff-b0c2-04babc4a2fc6", "metadata": {}, "outputs": [], "source": [ "# Creamos la tabla registro a registro\n", "tabla= []\n", "\n", "for row in rows:\n", " d = dict()\n", " \n", " d['medio'] = row.select_one('.source-title').text.strip()\n", " d['url'] = 'https://www.allsides.com' + row.select_one('.source-title a')['href']\n", " d['imagen'] = row.select_one('.views-field-field-bias-image a')['href'].split('/')[-1]\n", " d['acuerdo'] = int(row.select_one('.agree').text)\n", " d['desacuerdo'] = int(row.select_one('.disagree').text)\n", " d['ratio_acuerdo'] = d['acuerdo'] / d['desacuerdo']\n", " \n", " tabla.append(d)\n" ] }, { "cell_type": "code", "execution_count": 22, "id": "94d3a0be-8668-4fd8-8aed-f882945347a8", "metadata": {}, "outputs": [ { "data": { "text/html": [ "
\n", "\n", "\n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", "
mediourlimagenacuerdodesacuerdoratio_acuerdo
0ABC News (Online)https://www.allsides.com/news-source/abc-news-...left-center36820185581.98
1AlterNethttps://www.allsides.com/news-source/alternet-...left1443231584.57
2Associated Presshttps://www.allsides.com/news-source/associate...center27946218211.28
3Axioshttps://www.allsides.com/news-source/axioscenter666371720.93
4BBC Newshttps://www.allsides.com/news-source/bbc-news-...center30429261361.16
\n", "
" ], "text/plain": [ " medio url \\\n", "0 ABC News (Online) https://www.allsides.com/news-source/abc-news-... \n", "1 AlterNet https://www.allsides.com/news-source/alternet-... \n", "2 Associated Press https://www.allsides.com/news-source/associate... \n", "3 Axios https://www.allsides.com/news-source/axios \n", "4 BBC News https://www.allsides.com/news-source/bbc-news-... \n", "\n", " imagen acuerdo desacuerdo ratio_acuerdo \n", "0 left-center 36820 18558 1.98 \n", "1 left 14432 3158 4.57 \n", "2 center 27946 21821 1.28 \n", "3 center 6663 7172 0.93 \n", "4 center 30429 26136 1.16 " ] }, "execution_count": 22, "metadata": {}, "output_type": "execute_result" } ], "source": [ "tabla = pd.DataFrame(tabla)\n", "tabla.head()" ] }, { "cell_type": "code", "execution_count": 23, "id": "cb85982a-c313-4be8-b334-aa1de0007653", "metadata": {}, "outputs": [ { "data": { "text/html": [ "
\n", "\n", "\n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", "
mediourlimagenacuerdodesacuerdoratio_acuerdo
0ABC News (Online)https://www.allsides.com/news-source/abc-news-...left-center36820185581.98
1AlterNethttps://www.allsides.com/news-source/alternet-...left1443231584.57
2Associated Presshttps://www.allsides.com/news-source/associate...center27946218211.28
3Axioshttps://www.allsides.com/news-source/axioscenter666371720.93
4BBC Newshttps://www.allsides.com/news-source/bbc-news-...center30429261361.16
5Bloomberghttps://www.allsides.com/news-source/bloomberg...left-center16528216510.76
6Breitbart Newshttps://www.allsides.com/news-source/breitbartright40629114393.55
7BuzzFeed Newshttps://www.allsides.com/news-source/buzzfeed-...left2576094022.74
8CBS News (Online)https://www.allsides.com/news-source/cbs-news-...left-center19605125021.57
9Christian Science Monitorhttps://www.allsides.com/news-source/christian...center16061196520.82
10CNN (Online News)https://www.allsides.com/news-source/cnn-media...left53113485591.09
11CNN (Opinion)https://www.allsides.com/news-source/cnn-edito...left3506077404.53
12Daily Beasthttps://www.allsides.com/news-source/daily-bea...left2024562973.22
13Daily Mailhttps://www.allsides.com/news-source/daily-mailright1250368161.83
14Democracy Nowhttps://www.allsides.com/news-source/democracy...left1380431884.33
15Forbeshttps://www.allsides.com/news-source/forbescenter1432990591.58
16Fox News (Online News)https://www.allsides.com/news-source/fox-news-...right43738487740.90
17Fox News (Opinion)https://www.allsides.com/news-source/fox-news-...right2960968774.31
18HuffPosthttps://www.allsides.com/news-source/huffpost-...left36265224141.62
19Mother Joneshttps://www.allsides.com/news-source/mother-jo...left1585223546.73
20MSNBChttps://www.allsides.com/news-source/msnbcleft2207456633.90
21National Reviewhttps://www.allsides.com/news-source/national-...right1948779702.45
22NBC News (Online)https://www.allsides.com/news-source/nbc-news-...left-center12559122531.02
23New York Post (News)https://www.allsides.com/news-source/new-york-...right-center1494179211.89
24New York Times (News)https://www.allsides.com/news-source/new-york-...left-center29908397400.75
25New York Times (Opinion)https://www.allsides.com/news-source/new-york-...left1510641233.66
26Newsweekhttps://www.allsides.com/news-source/newsweekcenter359857450.63
27NPR (Online News)https://www.allsides.com/news-source/npr-media...center32462316261.03
28NPR (Opinion)https://www.allsides.com/news-source/npr-edito...left-center8846100960.88
29Politicohttps://www.allsides.com/news-source/politico-...left-center23899307640.78
30Reasonhttps://www.allsides.com/news-source/reasonright-center971959301.64
31Reutershttps://www.allsides.com/news-source/reuterscenter18851107121.76
32Slatehttps://www.allsides.com/news-source/slateleft995036042.76
33The American Spectatorhttps://www.allsides.com/news-source/american-...right1221242612.87
34The Atlantichttps://www.allsides.com/news-source/atlanticleft-center1516783841.81
35The Daily Callerhttps://www.allsides.com/news-source/daily-callerright1031441172.51
36The Daily Wirehttps://www.allsides.com/news-source/daily-wireright1123940302.79
37The Economisthttps://www.allsides.com/news-source/economistleft-center6174104830.59
38The Epoch Timeshttps://www.allsides.com/news-source/epoch-tim...right-center1176358572.01
39The Federalisthttps://www.allsides.com/news-source/federalistright950229263.25
40The Guardianhttps://www.allsides.com/news-source/guardianleft-center1411386711.63
41The Hillhttps://www.allsides.com/news-source/hill-medi...center16634223590.74
42The Intercepthttps://www.allsides.com/news-source/interceptleft580417293.36
43The New Yorkerhttps://www.allsides.com/news-source/new-yorkerleft989123984.12
44TheBlaze.comhttps://www.allsides.com/news-source/theblaze-...right101913815511.25
45Time Magazinehttps://www.allsides.com/news-source/time-maga...left-center966681381.19
46USA TODAYhttps://www.allsides.com/news-source/usa-today...left-center18898211510.89
47Voxhttps://www.allsides.com/news-source/vox-news-...left30416151652.01
48Wall Street Journal (News)https://www.allsides.com/news-source/wall-stre...center22701254080.89
49Wall Street Journal (Opinion)https://www.allsides.com/news-source/wall-stre...right-center1150676771.50
\n", "
" ], "text/plain": [ " medio \\\n", "0 ABC News (Online) \n", "1 AlterNet \n", "2 Associated Press \n", "3 Axios \n", "4 BBC News \n", "5 Bloomberg \n", "6 Breitbart News \n", "7 BuzzFeed News \n", "8 CBS News (Online) \n", "9 Christian Science Monitor \n", "10 CNN (Online News) \n", "11 CNN (Opinion) \n", "12 Daily Beast \n", "13 Daily Mail \n", "14 Democracy Now \n", "15 Forbes \n", "16 Fox News (Online News) \n", "17 Fox News (Opinion) \n", "18 HuffPost \n", "19 Mother Jones \n", "20 MSNBC \n", "21 National Review \n", "22 NBC News (Online) \n", "23 New York Post (News) \n", "24 New York Times (News) \n", "25 New York Times (Opinion) \n", "26 Newsweek \n", "27 NPR (Online News) \n", "28 NPR (Opinion) \n", "29 Politico \n", "30 Reason \n", "31 Reuters \n", "32 Slate \n", "33 The American Spectator \n", "34 The Atlantic \n", "35 The Daily Caller \n", "36 The Daily Wire \n", "37 The Economist \n", "38 The Epoch Times \n", "39 The Federalist \n", "40 The Guardian \n", "41 The Hill \n", "42 The Intercept \n", "43 The New Yorker \n", "44 TheBlaze.com \n", "45 Time Magazine \n", "46 USA TODAY \n", "47 Vox \n", "48 Wall Street Journal (News) \n", "49 Wall Street Journal (Opinion) \n", "\n", " url imagen acuerdo \\\n", "0 https://www.allsides.com/news-source/abc-news-... left-center 36820 \n", "1 https://www.allsides.com/news-source/alternet-... left 14432 \n", "2 https://www.allsides.com/news-source/associate... center 27946 \n", "3 https://www.allsides.com/news-source/axios center 6663 \n", "4 https://www.allsides.com/news-source/bbc-news-... center 30429 \n", "5 https://www.allsides.com/news-source/bloomberg... left-center 16528 \n", "6 https://www.allsides.com/news-source/breitbart right 40629 \n", "7 https://www.allsides.com/news-source/buzzfeed-... left 25760 \n", "8 https://www.allsides.com/news-source/cbs-news-... left-center 19605 \n", "9 https://www.allsides.com/news-source/christian... center 16061 \n", "10 https://www.allsides.com/news-source/cnn-media... left 53113 \n", "11 https://www.allsides.com/news-source/cnn-edito... left 35060 \n", "12 https://www.allsides.com/news-source/daily-bea... left 20245 \n", "13 https://www.allsides.com/news-source/daily-mail right 12503 \n", "14 https://www.allsides.com/news-source/democracy... left 13804 \n", "15 https://www.allsides.com/news-source/forbes center 14329 \n", "16 https://www.allsides.com/news-source/fox-news-... right 43738 \n", "17 https://www.allsides.com/news-source/fox-news-... right 29609 \n", "18 https://www.allsides.com/news-source/huffpost-... left 36265 \n", "19 https://www.allsides.com/news-source/mother-jo... left 15852 \n", "20 https://www.allsides.com/news-source/msnbc left 22074 \n", "21 https://www.allsides.com/news-source/national-... right 19487 \n", "22 https://www.allsides.com/news-source/nbc-news-... left-center 12559 \n", "23 https://www.allsides.com/news-source/new-york-... right-center 14941 \n", "24 https://www.allsides.com/news-source/new-york-... left-center 29908 \n", "25 https://www.allsides.com/news-source/new-york-... left 15106 \n", "26 https://www.allsides.com/news-source/newsweek center 3598 \n", "27 https://www.allsides.com/news-source/npr-media... center 32462 \n", "28 https://www.allsides.com/news-source/npr-edito... left-center 8846 \n", "29 https://www.allsides.com/news-source/politico-... left-center 23899 \n", "30 https://www.allsides.com/news-source/reason right-center 9719 \n", "31 https://www.allsides.com/news-source/reuters center 18851 \n", "32 https://www.allsides.com/news-source/slate left 9950 \n", "33 https://www.allsides.com/news-source/american-... right 12212 \n", "34 https://www.allsides.com/news-source/atlantic left-center 15167 \n", "35 https://www.allsides.com/news-source/daily-caller right 10314 \n", "36 https://www.allsides.com/news-source/daily-wire right 11239 \n", "37 https://www.allsides.com/news-source/economist left-center 6174 \n", "38 https://www.allsides.com/news-source/epoch-tim... right-center 11763 \n", "39 https://www.allsides.com/news-source/federalist right 9502 \n", "40 https://www.allsides.com/news-source/guardian left-center 14113 \n", "41 https://www.allsides.com/news-source/hill-medi... center 16634 \n", "42 https://www.allsides.com/news-source/intercept left 5804 \n", "43 https://www.allsides.com/news-source/new-yorker left 9891 \n", "44 https://www.allsides.com/news-source/theblaze-... right 101913 \n", "45 https://www.allsides.com/news-source/time-maga... left-center 9666 \n", "46 https://www.allsides.com/news-source/usa-today... left-center 18898 \n", "47 https://www.allsides.com/news-source/vox-news-... left 30416 \n", "48 https://www.allsides.com/news-source/wall-stre... center 22701 \n", "49 https://www.allsides.com/news-source/wall-stre... right-center 11506 \n", "\n", " desacuerdo ratio_acuerdo \n", "0 18558 1.98 \n", "1 3158 4.57 \n", "2 21821 1.28 \n", "3 7172 0.93 \n", "4 26136 1.16 \n", "5 21651 0.76 \n", "6 11439 3.55 \n", "7 9402 2.74 \n", "8 12502 1.57 \n", "9 19652 0.82 \n", "10 48559 1.09 \n", "11 7740 4.53 \n", "12 6297 3.22 \n", "13 6816 1.83 \n", "14 3188 4.33 \n", "15 9059 1.58 \n", "16 48774 0.90 \n", "17 6877 4.31 \n", "18 22414 1.62 \n", "19 2354 6.73 \n", "20 5663 3.90 \n", "21 7970 2.45 \n", "22 12253 1.02 \n", "23 7921 1.89 \n", "24 39740 0.75 \n", "25 4123 3.66 \n", "26 5745 0.63 \n", "27 31626 1.03 \n", "28 10096 0.88 \n", "29 30764 0.78 \n", "30 5930 1.64 \n", "31 10712 1.76 \n", "32 3604 2.76 \n", "33 4261 2.87 \n", "34 8384 1.81 \n", "35 4117 2.51 \n", "36 4030 2.79 \n", "37 10483 0.59 \n", "38 5857 2.01 \n", "39 2926 3.25 \n", "40 8671 1.63 \n", "41 22359 0.74 \n", "42 1729 3.36 \n", "43 2398 4.12 \n", "44 81551 1.25 \n", "45 8138 1.19 \n", "46 21151 0.89 \n", "47 15165 2.01 \n", "48 25408 0.89 \n", "49 7677 1.50 " ] }, "execution_count": 23, "metadata": {}, "output_type": "execute_result" } ], "source": [ "tabla" ] }, { "cell_type": "markdown", "id": "bc26d10b-ba77-44ff-a099-9933d6c4e863", "metadata": {}, "source": [ "Problema, sólo hemos extraído la primera página, pero hay más. No podemos extraer el resto con BeautifulSoup, puesto que se generan mediante código js" ] }, { "cell_type": "markdown", "id": "7d2efdec-7fcc-4955-afb5-d6af7d919331", "metadata": {}, "source": [ "Para acceder a páginas que crean su contenido dinámicamente, tenemos que utilizar Selenium. Selenium es una herramienta open source que sirve para testear el funcionamiento de las páginas web, pero se usa principalmente para Webscrapping." ] } ], "metadata": { "kernelspec": { "display_name": "Python 3 (ipykernel)", "language": "python", "name": "python3" }, "language_info": { "codemirror_mode": { "name": "ipython", "version": 3 }, "file_extension": ".py", "mimetype": "text/x-python", "name": "python", "nbconvert_exporter": "python", "pygments_lexer": "ipython3", "version": "3.8.12" } }, "nbformat": 4, "nbformat_minor": 5 }