Browse Source

Updated log of the UFO site

Andreas Kopmann 6 years ago
parent
commit
5c98017e3c
4 changed files with 100 additions and 0 deletions
  1. BIN
      .test-citations.py.swp
  2. 7 0
      log/scopus-publications-ufo-kit-edu.log
  3. 31 0
      test-citations.py
  4. 62 0
      test-citations2.py

BIN
.test-citations.py.swp


+ 7 - 0
log/scopus-publications-ufo-kit-edu.log

@@ -54,3 +54,10 @@ scopus-get-publications.py
 2018-03-20	11:05:30	  148	    0	  660	    8	0:00:58.301810
 2018-03-20	11:06:32	  148	    0	  660	    0	0:00:10.112241
 2018-03-20	11:50:46	  148	    0	  660	    0	0:00:13.964116
+2018-03-26	10:43:38	  148	    0	  663	    3	0:00:18.869935
+2018-04-16	09:41:47	  149	    1	  667	    4	0:00:33.428451
+2018-04-16	09:52:02	  159	   10	  739	   72	0:03:30.819239
+2018-04-19	19:26:00	  160	    1	  745	    6	0:00:54.086920
+2018-04-23	21:40:42	  160	    0	  745	    0	0:00:10.334309
+2018-04-25	12:36:59	  160	    0	  745	    0	0:00:25.924248
+2018-05-16	10:37:28	  160	    0	     	     	0:00:12.960127

+ 31 - 0
test-citations.py

@@ -0,0 +1,31 @@
+import requests
+import json
+from pprint import pprint
+
+from config import *
+
+#
+# Script to check all the afiliations of the authors
+#
+
+SCOPUS_ID = "SCOPUS_ID:85039766090"
+EID = "2-s2.0-84946782439" 
+
+#url = "https://api.elsevier.com/content/search/scopus?query=refeid(" + EID + ")" 
+#url = "https://api.elsevier.com/content/abstract/citations/scopus_id/" + SCOPUS_ID 
+url = "http://api.elsevier.com/content/abstract/scopus_id/" + SCOPUS_ID
+
+
+resp = requests.get(url,headers={'Accept':'application/json','X-ELS-APIKey':DTS_API_KEY})
+
+results = resp.json()
+pprint(results)
+
+
+
+
+
+
+
+
+

+ 62 - 0
test-citations2.py

@@ -0,0 +1,62 @@
+import requests
+import json
+from pprint import pprint
+
+from config import *
+
+#
+# Script to check all the afiliations of the authors
+#
+
+EID = "2-s2.0-84946782439" 
+
+url = "https://api.elsevier.com/content/search/scopus?query=refeid(" + EID + ")" 
+
+resp = requests.get(url,headers={'Accept':'application/json','X-ELS-APIKey':MY_API_KEY})
+
+results = resp.json()
+pprint(results)
+
+exit()
+
+
+
+count = 25
+n = 0
+npubstoget = 25
+start = 0
+ntotal = 0
+publist = []
+
+while (npubstoget > 0):
+
+        loopargs = "&count=%d&start=%d" % (count, start)
+        #print loopargs
+
+        url = ("https://api.elsevier.com/content/search/scopus?query=refeid("
+               + EID + ")" + loopargs)
+
+        print "URL: " + url
+        resp = requests.get(url,headers={'Accept':'application/json','X-ELS-APIKey':MY_API_KEY})
+
+        results = resp.json()
+        pprint(results)
+        #print json.dumps(results,sort_keys=True,indent=4, separators=(',', ': '))
+
+        if (n==0):
+            n = int(results['search-results']['opensearch:totalResults'])
+            #print "Current number citations in scopus = %d" % n
+            npubstoget = n
+
+        if (n>0):
+                publist += results['search-results']['entry']
+
+        npubstoget = npubstoget - count
+        start += count
+
+
+
+
+
+
+