Skip to content

Commit

Permalink
Merge pull request #59 from MoenMi/add-nps
Browse files Browse the repository at this point in the history
Add NPS in Python Recipe
  • Loading branch information
vfscalfani authored Oct 21, 2024
2 parents 1aa888e + cf64c00 commit d925c1f
Show file tree
Hide file tree
Showing 4 changed files with 657 additions and 1 deletion.
6 changes: 6 additions & 0 deletions _toc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -140,6 +140,12 @@ parts:
- caption: GENERAL
chapters:

# National Park Service
- file: src/overview/nps
sections:
- file: src/python/nps
title: "...in Python"

# Speedrun.com
- file: src/overview/speedrun
sections:
Expand Down
21 changes: 21 additions & 0 deletions src/overview/nps.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
National Park Service
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

.. sectionauthor:: Michael T. Moen <mtmoen@crimson.ua.edu>

Brief Overview
****************

The National Park Service (NPS) API contains pertinent information about national parks, monuments, and other sites managed by the NPS. An API key is required for this API, and registration can be found on the NPS website [#nps1]_ . Users are required to follow the rate limits of 1000 requests per hour [#nps2]_ .

See the NPS API documentation [#nps3]_ for more information on accessing the API. Note that the data in the API is "is generally considered in the public domain," according to the API's disclaimer [#nps4]_ .

.. rubric:: References

.. [#nps1] `<https://www.nps.gov/subjects/developer/get-started.htm>`_
.. [#nps2] `<https://www.nps.gov/subjects/developer/guides.htm>`_
.. [#nps3] `<https://www.nps.gov/subjects/developer/api-documentation.htm>`_
.. [#nps4] `<https://www.nps.gov/aboutus/disclaimer.htm>`_
629 changes: 629 additions & 0 deletions src/python/nps.ipynb

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion src/python/speedrun.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -585,7 +585,7 @@
"cell_type": "markdown",
"metadata": {},
"source": [
"## 3. Graphing an Interactive World Record Progression Graph\n",
"## 3. Graphing a World Record Progression Graph\n",
"\n",
"This code fetches data from the Speedrun\\.com API for Mario Kart Wii's 32 Tracks (No Skips) category, accumulates the dates and runtimes of verified runs, and identifies the progression of the world record over time. It then sorts the data and extracts the relevant dates and runtimes to graph the progression of this world record category.\n",
"\n",
Expand Down

0 comments on commit d925c1f

Please sign in to comment.