Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 8 additions & 13 deletions course_material/week_05/weather_api.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -20,23 +20,16 @@
},
{
"cell_type": "code",
"execution_count": 41,
"execution_count": null,
"metadata": {},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"48c662d8e2fbc87db3c1601e94215d84\n"
]
}
],
Comment on lines -25 to -33
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

the text could be left with just the first 5 characters to mask it or changed to fit with the example check in my code

"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]}')"
]
},
{
Expand All @@ -54,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/)"
]
},
{
Expand Down Expand Up @@ -196,7 +191,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.8.2"
"version": "3.8.5"
}
},
"nbformat": 4,
Expand Down
2 changes: 1 addition & 1 deletion course_material/week_05/week_05_assignment.md
Original file line number Diff line number Diff line change
@@ -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!

Expand Down