Skip to content
Open
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
5 changes: 3 additions & 2 deletions webscraping/imdb_answers.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
import requests
from bs4 import BeautifulSoup
import json
import time
#import this package if you have encoding errors
# import sys
# sys.setdefaultencoding('utf8')
Expand All @@ -20,7 +21,7 @@
start = time.time()
b = BeautifulSoup(r_unparsed,'lxml')
end = time.time()
print end - start
print(end - start)

#print b

Expand Down Expand Up @@ -73,7 +74,7 @@ def directors(x):
directors_list.append(str(director['name']))
return directors_list

print directors(b)
print(directors(b))


# ## create a function that extracts this information of any IMDB movie of your choosing
Expand Down