mirror of
https://github.com/migatu/conjurer.git
synced 2026-07-14 21:38:38 +00:00
bb
This commit is contained in:
@@ -55,7 +55,7 @@ class Librarian(object):
|
||||
print(item['type'])
|
||||
|
||||
print(item['DOI'])
|
||||
summarized_results.append({"DOI" : item['DOI'], "title": item['title'] if 'title' in item else "NO TITLE!","type": item['type'] if 'type' in item else "NO TYPE", "container": container})
|
||||
summarized_results.append({"DOI" : item['DOI'], "title": item['title'] if 'title' in item else None,"type": item['type'] if 'type' in item else None, "container": container})
|
||||
result = {"UUID": uuid, "total_results": search_result_from_cr['message']['total-results'], "on_page" : 1, "summary":summarized_results, "results":search_result_from_cr['message']['items'], }
|
||||
file_data.append(result)
|
||||
print("Saving")
|
||||
@@ -96,7 +96,7 @@ class Librarian(object):
|
||||
print("Refine result")
|
||||
refined_result = []
|
||||
for item in unrefined_reqult["summary"]:
|
||||
if item["container"] == "NO":
|
||||
if item["container"] == "NO" and item["title"]:
|
||||
print(item["title"])
|
||||
item_link = "https://sci-hub.se/" + str(item['DOI'])
|
||||
if self.check_if_exists(item_link):
|
||||
|
||||
Reference in New Issue
Block a user