diff --git a/web-scraping/http_server.ipynb b/web-scraping/http_server.ipynb index ca95c60..5202d92 100644 --- a/web-scraping/http_server.ipynb +++ b/web-scraping/http_server.ipynb @@ -2,7 +2,7 @@ "cells": [ { "cell_type": "code", - "execution_count": 1, + "execution_count": null, "id": "4399748f-46a0-4f1f-b30e-6658a20ba363", "metadata": {}, "outputs": [], @@ -17,7 +17,7 @@ }, { "cell_type": "code", - "execution_count": 2, + "execution_count": null, "id": "7ade43cb-55cc-4eda-ad36-f554d9be6f5b", "metadata": {}, "outputs": [], @@ -39,7 +39,7 @@ }, { "cell_type": "code", - "execution_count": 3, + "execution_count": null, "id": "915cf7a6-0302-4149-b6ee-61531040eedc", "metadata": {}, "outputs": [], @@ -50,71 +50,10 @@ }, { "cell_type": "code", - "execution_count": 4, + "execution_count": null, "id": "668ada47-b9f2-4669-aca4-35e265285094", "metadata": {}, - "outputs": [ - { - "name": "stderr", - "output_type": "stream", - "text": [ - "ERROR:root:Host: localhost:8000\n", - "User-Agent: python-requests/2.31.0\n", - "Accept-Encoding: gzip, deflate\n", - "Accept: */*\n", - "Connection: keep-alive\n", - "\n", - "\n", - "127.0.0.1 - - [03/Oct/2023 11:30:42] \"GET / HTTP/1.1\" 200 -\n" - ] - }, - { - "data": { - "text/plain": [ - "'\\n
\\n \\nHello, World!
\\n \\n'" - ] - }, - "execution_count": 4, - "metadata": {}, - "output_type": "execute_result" - }, - { - "name": "stderr", - "output_type": "stream", - "text": [ - "ERROR:root:Host: localhost:8000\n", - "User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:109.0) Gecko/20100101 Firefox/118.0\n", - "Accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,*/*;q=0.8\n", - "Accept-Language: en-US,en;q=0.5\n", - "Accept-Encoding: gzip, deflate, br\n", - "Connection: keep-alive\n", - "Cookie: _ga=GA1.1.1332619464.1677007840; _ga_DQ509WFL1C=GS1.1.1682084873.1.1.1682087049.0.0.0; _ga_GWC89VH8XE=GS1.1.1694178068.3.1.1694178212.0.0.0\n", - "Upgrade-Insecure-Requests: 1\n", - "Sec-Fetch-Dest: document\n", - "Sec-Fetch-Mode: navigate\n", - "Sec-Fetch-Site: none\n", - "Sec-Fetch-User: ?1\n", - "\n", - "\n", - "127.0.0.1 - - [03/Oct/2023 11:31:21] \"GET / HTTP/1.1\" 200 -\n", - "ERROR:root:Host: localhost:8000\n", - "User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:109.0) Gecko/20100101 Firefox/118.0\n", - "Accept: image/avif,image/webp,*/*\n", - "Accept-Language: en-US,en;q=0.5\n", - "Accept-Encoding: gzip, deflate, br\n", - "Connection: keep-alive\n", - "Referer: http://localhost:8000/\n", - "Cookie: _ga=GA1.1.1332619464.1677007840; _ga_DQ509WFL1C=GS1.1.1682084873.1.1.1682087049.0.0.0; _ga_GWC89VH8XE=GS1.1.1694178068.3.1.1694178212.0.0.0\n", - "Sec-Fetch-Dest: image\n", - "Sec-Fetch-Mode: no-cors\n", - "Sec-Fetch-Site: same-origin\n", - "\n", - "\n", - "127.0.0.1 - - [03/Oct/2023 11:31:21] code 404, message File not found\n", - "127.0.0.1 - - [03/Oct/2023 11:31:21] \"GET /favicon.ico HTTP/1.1\" 404 -\n" - ] - } - ], + "outputs": [], "source": [ "r = requests.get(\"http://localhost:8000\")\n", "r.text" @@ -147,7 +86,7 @@ "name": "python", "nbconvert_exporter": "python", "pygments_lexer": "ipython3", - "version": "3.11.4" + "version": "3.11.7" } }, "nbformat": 4, diff --git a/web-scraping/web-scraping-workshop-2023.ipynb b/web-scraping/web-scraping-workshop-2023.ipynb index d383cab..6628b83 100644 --- a/web-scraping/web-scraping-workshop-2023.ipynb +++ b/web-scraping/web-scraping-workshop-2023.ipynb @@ -24,9 +24,11 @@ "source": [ "**Instructors**: Matt Mihalik & Dolsy Smith\n", "\n", - "**Date & Time**: Tuesday, October 3, 10 am - 12 pm\n", + "**Date & Time**: Friday, October 4, 2:30 - 4:30 pm\n", "\n", - "**Location**: Gelman Library, Room 302 and [via Zoom](https://gwu-edu.zoom.us/my/laiworkshops)" + "**Location**: Gelman Library, Room 324 and [via Zoom](https://gwu-edu.zoom.us/my/laiworkshops)\n", + "\n", + "**Notebook link**: [https://go.gwu.edu/web-scraping-workshop](https://go.gwu.edu/web-scraping-workshop)" ] }, { @@ -1131,7 +1133,7 @@ "name": "python", "nbconvert_exporter": "python", "pygments_lexer": "ipython3", - "version": "3.11.4" + "version": "3.11.7" } }, "nbformat": 4,