Update guardian.py
Browse files- guardian.py +1 -1
guardian.py
CHANGED
|
@@ -25,7 +25,7 @@ def fetch_full_article(url: str) -> str:
|
|
| 25 |
"""
|
| 26 |
Given a Guardian article URL, re-query its body text via the API.
|
| 27 |
"""
|
| 28 |
-
key = st.secrets["
|
| 29 |
path = url.split("content.guardianapis.com")[-1]
|
| 30 |
resp = requests.get(
|
| 31 |
f"https://content.guardianapis.com{path}",
|
|
|
|
| 25 |
"""
|
| 26 |
Given a Guardian article URL, re-query its body text via the API.
|
| 27 |
"""
|
| 28 |
+
key = st.secrets["GUARDIAN_API_KEY"]
|
| 29 |
path = url.split("content.guardianapis.com")[-1]
|
| 30 |
resp = requests.get(
|
| 31 |
f"https://content.guardianapis.com{path}",
|