mirror of
https://github.com/migatu/conjurer.git
synced 2026-07-17 15:22:10 +00:00
bb
This commit is contained in:
@@ -55,7 +55,7 @@ class Librarian(object):
|
|||||||
print(item['type'])
|
print(item['type'])
|
||||||
|
|
||||||
print(item['DOI'])
|
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'], }
|
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)
|
file_data.append(result)
|
||||||
print("Saving")
|
print("Saving")
|
||||||
@@ -96,7 +96,7 @@ class Librarian(object):
|
|||||||
print("Refine result")
|
print("Refine result")
|
||||||
refined_result = []
|
refined_result = []
|
||||||
for item in unrefined_reqult["summary"]:
|
for item in unrefined_reqult["summary"]:
|
||||||
if item["container"] == "NO":
|
if item["container"] == "NO" and item["title"]:
|
||||||
print(item["title"])
|
print(item["title"])
|
||||||
item_link = "https://sci-hub.se/" + str(item['DOI'])
|
item_link = "https://sci-hub.se/" + str(item['DOI'])
|
||||||
if self.check_if_exists(item_link):
|
if self.check_if_exists(item_link):
|
||||||
|
|||||||
Reference in New Issue
Block a user