|
@@ -17,16 +17,3 @@ def response(resp):
|
17
|
17
|
results.append(base_result_template.format(**res))
|
18
|
18
|
|
19
|
19
|
return results
|
20
|
|
-
|
21
|
|
-#from lxml import html
|
22
|
|
-#def request(query, params):
|
23
|
|
-# params['method'] = 'POST'
|
24
|
|
-# params['url'] = 'https://duckduckgo.com/html'
|
25
|
|
-# params['data']['q'] = query
|
26
|
|
-# return params
|
27
|
|
-#
|
28
|
|
-#
|
29
|
|
-#def response(resp):
|
30
|
|
-# dom = html.fromstring(resp.text)
|
31
|
|
-# results = dom.xpath('//div[@class="results_links results_links_deep web-result"]')
|
32
|
|
-# return [html.tostring(x) for x in results]
|