39 dom = html.fromstring(resp.text)
41 for result
in eval_xpath_list(dom, results_xpath):
43 for xpath
in (release_year_xpath, score_xpath, cast_xpath):
44 info = extract_text(eval_xpath(result, xpath))
47 if info
and info[-1] !=
" ":
52 'url': extract_text(eval_xpath(result, url_xpath)),
53 'title': extract_text(eval_xpath(result, title_xpath)),
54 'content':
', '.join(content),
55 'thumbnail': extract_text(eval_xpath(result, thumbnail_xpath)),