boredapi.com cert expired. Use http for now.
dblume

dblume commited on 2022-08-21 15:27:06
Showing 2 changed files, with 4 additions and 3 deletions.

... ...
@@ -31,7 +31,8 @@ class ActivitySchema(Schema):
31 31
 
32 32
 
33 33
 def get_activity() -> Activity:
34
-    resp = requests.get("https://www.boredapi.com/api/activity").json()
34
+    # Restore https when https://github.com/drewthoennes/Bored-API/issues/61 fixed
35
+    resp = requests.get("http://www.boredapi.com/api/activity").json()
35 36
     validated_resp = ActivitySchema(unknown=EXCLUDE).load(resp)
36 37
 
37 38
     return Activity(
... ...
@@ -11,8 +11,8 @@ sites: List[str] = [
11 11
 #    'http://www.cnn.com',
12 12
 #    'http://www.python.org',
13 13
 #    'http://www.jython.org',
14
-    'http://www.pypy.org',
15
-    'http://www.perl.org',
14
+    'https://www.pypy.org',
15
+    'https://www.perl.org',
16 16
 #    'http://www.cisco.com',
17 17
 #    'http://www.facebook.com',
18 18
 #    'http://www.twitter.com',
19 19