Skip to content

Commit c446f36

Browse files
committed
Update usage example (fix #34)
1 parent 96570fe commit c446f36

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

testing_tools/real_apis/randomapis.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
"""
22
Example uses the following APIs:
33
- CHRONICLING API (https://chroniclingamerica.loc.gov/about/api/)
4-
- Launch Library Reading API (https://launchlibrary.net/docs/1.3/api.html)
4+
- Launch Library Reading V2 API (https://ll.thespacedevs.com/2.0.0/swagger)
55
- University Domains and Names Data List (https://github.com/Hipo/university-domains-list)
66
"""
77
import requests
@@ -18,8 +18,8 @@ def chroniclingamerica(tag="michigan"):
1818
return requests.get(f"http://chroniclingamerica.loc.gov/search/titles/results/?terms={tag}&format=json").json()
1919

2020

21-
def launchlibrary(mission_name="GPS"):
22-
return requests.get(f"https://launchlibrary.net/1.3/mission/{mission_name}").json()
21+
def launchlibrary():
22+
return requests.get(f"https://ll.thespacedevs.com/2.0.0/dashboard/starship/").json()
2323

2424

2525
def university_domains():

0 commit comments

Comments
 (0)