diff --git a/_sources/lectures/TWP45/TWP45_2.rst b/_sources/lectures/TWP45/TWP45_2.rst index f06701a342..d9b99bc945 100644 --- a/_sources/lectures/TWP45/TWP45_2.rst +++ b/_sources/lectures/TWP45/TWP45_2.rst @@ -17,7 +17,7 @@ En este ejercicio vamos a acceder a Reddit para obetener datos como los de la si import json # La url de Reddit a la que accederemos - url = "https://cors.bridged.cc/http://www.reddit.com/r/Python/.json" + url = "https://api.reddit.com/r/Python/.json" resp = urllib.request.urlopen(url).read() # La respuesta se da en formato json, se debe transformar a diff --git a/_sources/lectures/TWP45/TWP45_2_en.rst b/_sources/lectures/TWP45/TWP45_2_en.rst index ce13cce510..c44099b934 100644 --- a/_sources/lectures/TWP45/TWP45_2_en.rst +++ b/_sources/lectures/TWP45/TWP45_2_en.rst @@ -17,7 +17,7 @@ In this exercise we are going to access Reddit to obtain data like the one in th import json # The Reddit URL we'll access - url = "https://cors.bridged.cc/http://www.reddit.com/r/Python/.json" + url = "https://api.reddit.com/r/Python/.json" resp = urllib.request.urlopen(url).read() # The response is in JSON format, it needs to be transformed diff --git a/tests/test_TWP45.py b/tests/test_TWP45.py index b6e8fd0474..2f0a8ed1f0 100644 --- a/tests/test_TWP45.py +++ b/tests/test_TWP45.py @@ -18,7 +18,7 @@ def test_l45_1(page): # Test the src attribute from image matches the Facebook URL assert img_src == "https://graph.facebook.com/ACDC/picture?type=large" - + @pytest.mark.vcr() def test_l45_3(page): # Go to TWP45 page