Skip to content

Commit

Permalink
Merge pull request #320 from abadoni5/aayush/issue#289
Browse files Browse the repository at this point in the history
fixed broken reddit api exercise
  • Loading branch information
NicolasSandoval authored Mar 15, 2024
2 parents 43ced16 + 6d034b4 commit 912c7df
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion _sources/lectures/TWP45/TWP45_2.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion _sources/lectures/TWP45/TWP45_2_en.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion tests/test_TWP45.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 912c7df

Please sign in to comment.