more than 7 is unlikely
This commit is contained in:
parent
3f7e8a8927
commit
4d11acdb87
1 changed files with 1 additions and 1 deletions
|
@ -19,7 +19,7 @@ def searchByImdb(imdb_id, title=None, director=None):
|
||||||
director = director[0]
|
director = director[0]
|
||||||
else:
|
else:
|
||||||
director = ''
|
director = ''
|
||||||
for g in google('"%s" %s site:en.wikipedia.org' % (title, director), 20):
|
for g in google('"%s" %s site:en.wikipedia.org' % (title, director), 7):
|
||||||
url = g[1]
|
url = g[1]
|
||||||
data = read_url(url)
|
data = read_url(url)
|
||||||
soup = BeautifulSoup(data)
|
soup = BeautifulSoup(data)
|
||||||
|
|
Loading…
Reference in a new issue