fix some tests and urls
This commit is contained in:
parent
5355dbf821
commit
7695a9c015
7 changed files with 60 additions and 238 deletions
|
|
@ -21,11 +21,11 @@ def find(query, max_results=DEFAULT_MAX_RESULTS, timeout=DEFAULT_TIMEOUT):
|
|||
"""
|
||||
Return max_results tuples with title, url, description
|
||||
|
||||
>>> find("The Matrix site:imdb.com", 1)[0][0]
|
||||
u'The Matrix (1999) - IMDb'
|
||||
>>> str(find("The Matrix site:imdb.com", 1)[0][0])
|
||||
'The Matrix (1999) - IMDb'
|
||||
|
||||
>>> find("The Matrix site:imdb.com", 1)[0][1]
|
||||
u'http://www.imdb.com/title/tt0133093/'
|
||||
>>> str(find("The Matrix site:imdb.com", 1)[0][1])
|
||||
'http://www.imdb.com/title/tt0133093/'
|
||||
"""
|
||||
results = []
|
||||
offset = 0
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue