|
@@ -18,7 +18,7 @@ def request(query, params):
|
18
|
18
|
def response(resp):
|
19
|
19
|
global base_url
|
20
|
20
|
results = []
|
21
|
|
- dom = html.fromstring(resp.text)
|
|
21
|
+ dom = html.fromstring(resp.content)
|
22
|
22
|
for result in dom.xpath('//div[@class="result"]'):
|
23
|
23
|
link = result.xpath('.//h3/a')[0]
|
24
|
24
|
url = urljoin(base_url, link.attrib.get('href'))
|