Merge pull request #289 from return42/fix-xpath

[fix] remove minimum length of content for XPath engine
This commit is contained in:
Alexandre Flament 2021-09-04 15:34:18 +02:00 committed by GitHub
commit 33ea1d5909
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -194,7 +194,7 @@ def response(resp):
url = extract_url(eval_xpath_list(result, url_xpath, min_len=1), search_url)
title = extract_text(eval_xpath_list(result, title_xpath, min_len=1))
content = extract_text(eval_xpath_list(result, content_xpath, min_len=1))
content = extract_text(eval_xpath_list(result, content_xpath))
tmp_result = {'url': url, 'title': title, 'content': content}
# add thumbnail if available