Skip to content

Commit

Permalink
found ads inconsistencies
Browse files Browse the repository at this point in the history
  • Loading branch information
siddharm committed Nov 6, 2019
1 parent 4c97503 commit 0168034
Show file tree
Hide file tree
Showing 4 changed files with 260 additions and 18 deletions.
14 changes: 10 additions & 4 deletions ascl-ads-comparison/ads_checker.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ def check_pages(num):
#print("starting at resutlt " + str(curr_result))

params = (
('q', 'ascl'),
('q', 'bibstem:ascl.soft'),
('fl', 'bibcode'),
('rows', "3000"),
('start', str(curr_result))
Expand All @@ -40,19 +40,25 @@ def check_pages(num):
data = response.json();
num_results = data["response"]["numFound"]

curr_result = curr_result + num_results
curr_result = curr_result + 2000

#print(str(num_results) + " total found on page " + str(k))

for i in data["response"]["docs"]:
bc = i["bibcode"]
return_list.append(bc)

'''
new_rel = []
for i in data["response"]["docs"]:
bc = i['bibcode']
if "ascl.soft" in bc:
new_rel.append(bc)

#print(str(len(new_rel)) + " relevant found on page " + str(k))
print(str(len(new_rel)) + " relevant found on page " + str(k))
return_list.extend(new_rel)
'''
return_list.sort()
return return_list

Expand Down
Loading

0 comments on commit 0168034

Please sign in to comment.