40 dom = html.fromstring(resp.text)
42 for item
in eval_xpath_list(dom, results_xpath):
45 published_date = datetime.strptime(
46 extract_text(eval_xpath(item, publish_date_xpath)),
"%b %d, %Y %I:%M %p %Z"
53 title=extract_text(eval_xpath(item, title_xpath)),
54 content=extract_text(eval_xpath(item, content_xpath)),
55 url=f
"{base_url}{eval_xpath_getindex(item, url_xpath, 0)}",
56 publishedDate=published_date,