From 46db0cf356f07ce974d654e9ab297844cdaa442b Mon Sep 17 00:00:00 2001 From: Charlie G Date: Thu, 17 Sep 2020 16:00:21 -0500 Subject: [PATCH 1/2] hide example api key and only print first 5 characters --- course_material/week_05/weather_api.ipynb | 17 +++++------------ 1 file changed, 5 insertions(+), 12 deletions(-) diff --git a/course_material/week_05/weather_api.ipynb b/course_material/week_05/weather_api.ipynb index 60c563a..2406052 100644 --- a/course_material/week_05/weather_api.ipynb +++ b/course_material/week_05/weather_api.ipynb @@ -20,23 +20,16 @@ }, { "cell_type": "code", - "execution_count": 41, + "execution_count": null, "metadata": {}, - "outputs": [ - { - "name": "stdout", - "output_type": "stream", - "text": [ - "48c662d8e2fbc87db3c1601e94215d84\n" - ] - } - ], + "outputs": [], "source": [ "from api_keys import api_key\n", "\n", "# you imported a variable name api_key\n", "# keys should be kept safe! \n", - "print(api_key)" + "if api_key:\n", + " print(f'API key present! The first 5 characters are: {api_key[:5]}')" ] }, { @@ -196,7 +189,7 @@ "name": "python", "nbconvert_exporter": "python", "pygments_lexer": "ipython3", - "version": "3.8.2" + "version": "3.8.5" } }, "nbformat": 4, From 4fcc84b581cad82b4c1e5c3a7b1ccb3e8fcb1444 Mon Sep 17 00:00:00 2001 From: Charlie G Date: Thu, 17 Sep 2020 16:25:39 -0500 Subject: [PATCH 2/2] update week 5 homework links --- course_material/week_05/weather_api.ipynb | 4 +++- course_material/week_05/week_05_assignment.md | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/course_material/week_05/weather_api.ipynb b/course_material/week_05/weather_api.ipynb index 2406052..0cf1ff7 100644 --- a/course_material/week_05/weather_api.ipynb +++ b/course_material/week_05/weather_api.ipynb @@ -47,7 +47,9 @@ "cell_type": "markdown", "metadata": {}, "source": [ - "[Anatomy of a URL](https://doepud.co.uk/blog/anatomy-of-a-url)" + "[What is a URL](https://developer.mozilla.org/en-US/docs/Learn/Common_questions/What_is_a_URL)\n", + "\n", + "[Anatomy of a URL](https://websitebuilders.com/how-to/web-at-a-glance/url-anatomy/)" ] }, { diff --git a/course_material/week_05/week_05_assignment.md b/course_material/week_05/week_05_assignment.md index a0afeea..abfc74d 100644 --- a/course_material/week_05/week_05_assignment.md +++ b/course_material/week_05/week_05_assignment.md @@ -1,6 +1,6 @@ ## In Class Assignment due Friday, Sept 018, 2020 @ 8pm 1. Finish the in class `weather_api.ipynb' and submit a link to your repo/notebook. (You can use the same repo for your Homework Assignment.) -2. Read [Anatomy of a URL](https://doepud.co.uk/blog/anatomy-of-a-url) +2. Read [Anatomy of a URL](https://websitebuilders.com/how-to/web-at-a-glance/url-anatomy/) 3. Read [REST API Tutorial](https://restfulapi.net/http-methods/) 4. Start homework early!