50 if resp.url.path.startswith(
'/verify'):
55 dom = html.fromstring(resp.content.decode())
56 for result_element
in eval_xpath_list(
57 dom,
'//div[@id="searchpage-root"]//div[@class="Layout--left"]/div[@class="f2c528"]'
59 result_data = eval_xpath_getindex(
60 result_element,
'.//div[@class="c8774a" or @class="e69e8d a11657"]', 0, default=
None
62 if result_data
is None:
64 title_element = eval_xpath_getindex(result_element,
'.//h3/a', 0)
67 'url': title_element.get(
'href'),
68 'title': extract_text(title_element),
69 'content': extract_text(result_data),