Created
November 17, 2017 17:31
-
-
Save kaplun/4c5e61671d2f1957422817145d807474 to your computer and use it in GitHub Desktop.
duplicate CDS
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
for elem in a: | |
recid = elem[0] | |
cdsid = elem[3] | |
out.setdefault(cdsid, recid) | |
if out[cdsid] != recid: | |
print "http://inspirehep.net/record/%s" % out[cdsid], "http://inspirehep.net/record/%s" % recid, "https://inspirehep.net/record/merge/#recid1=%s&recid2=%s" % (out[cdsid], recid) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment