Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions Lesson_2_Problem_Set/01-Carrier_List/carriers.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ def extract_carriers(page):

with open(page, "r") as html:
# do something here to find the necessary values
soup = BeautifulSoup(html)
soup = BeautifulSoup(html, "lxml")

return data

Expand Down Expand Up @@ -48,4 +48,4 @@ def test():
assert "FL" in data
assert "NK" in data

test()
test()
4 changes: 2 additions & 2 deletions Lesson_2_Problem_Set/02-Airport_List/airports.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ def extract_airports(page):
data = []
with open(page, "r") as html:
# do something here to find the necessary values
soup = BeautifulSoup(html)
soup = BeautifulSoup(html, "lxml")

return data

Expand All @@ -22,4 +22,4 @@ def test():
assert "ATL" in data
assert "ABR" in data

test()
test()
4 changes: 2 additions & 2 deletions Lesson_2_Problem_Set/03-Processing_All/process.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ def process_file(f):

with open("{}/{}".format(datadir, f), "r") as html:

soup = BeautifulSoup(html)
soup = BeautifulSoup(html, "lxml")

return data

Expand All @@ -66,4 +66,4 @@ def test():
print "... success!"

if __name__ == "__main__":
test()
test()