Browse Source

Merge branch 'master' of https://fuzzy.fzk.de/gogs/kopmann/scopus

Andreas Kopmann 6 years ago
parent
commit
a12e5b9600
3 changed files with 51 additions and 12 deletions
  1. 7 1
      README.md
  2. 20 3
      etc/config_ipekopmann2.py
  3. 24 8
      test-scopus2.py

+ 7 - 1
README.md

@@ -9,11 +9,17 @@ Note: All scopus scripts run only with valid access to the Scopus database (e.g.
 ## Version history
 
 Todo:
+- Add script to list all affiliations for one of the authors
+- Change author defintion to author id+ affiliation id
+    If a author has been in two places, add a second author with the same id 
+    the other affilitation
 - Generate a sensible API documentation; 
 	Add a basic user documentation along with the API description
 - Add maintenance scripts, that check consittence of Scopus data and 
   cache database; update of post categories; warning in case of inconsistencies
- 
+- Add configuration for all IPE scientists (and setup IPE publication website)
+
+
 
 Version 1.3, 23.5.17 (ak):
 - generated python inline documentation

+ 20 - 3
etc/config_ipekopmann2.py

@@ -45,7 +45,9 @@ MY_API_KEY = "14d431d052c2caf5e9c4b1ab7de7463d"
 
 # KIT, PDV
 ak = "35313939900"
+ak2 = "57193311016"
 csa = "15076530600"
+csa2 = "6506491376"
 matthiasVogelgesang = "35303862100"
 timoDritschler = "56473578500"
 andreiShkarin = "56950893700"
@@ -63,9 +65,10 @@ lorenzoRota = "56473442500"
 matthiasBalzer = "35519411500"
 
 # KIT, IPE
-marcWeber = "56654729000"
-mw2 = "56603987800"
-mw3 = "7404138824"
+marcWeber = "56654729000" # KIT Engineering 29, 25.10.17
+mw2 = "56603987800" # have not found anymore?!
+mw3 = "7404138824"   # KIT-CN Physice 667, 25.10.17
+mw4 = "14625680200"  # KIT Physics 1651, 25.10.17
 
 # KIT, IPS
 tomyRolo = "56118820400"
@@ -73,6 +76,7 @@ tr2 = "35194644400"
 tr3 = "35277157300"
 tomasFarago = "56655045700"
 alexyErshof = "56441809800"
+andreiShkarin = "56950893700"
 romanShkarin = "56951331000"
 tiloBaumbach = "7003270957"
 thomasVandekamp = "46761453500"
@@ -90,6 +94,19 @@ hansBluemer = "7006284555"
 matthiasKleifegs = "6602072426"
 
 
+
+
+
+# Affiliations
+kit = "60027314"
+kit_cn = "60027314" 
+kit_cs = "60029428" 
+uni_hd = "60016908"
+uni_h = " 60004935"
+uni_da = "60011226"
+
+
+
 # Definition of workgroups for automatic Scopus publication retrieval
 
 sc_start = 2010

+ 24 - 8
test-scopus2.py

@@ -1,16 +1,32 @@
 import requests
 import json
-from my_scopus import MY_API_KEY
 
-resp = requests.get("http://api.elsevier.com/content/search/scopus?query=AU-ID(7004212771)&field=dc:identifier&count=10",
-                    headers={'Accept':'application/json',
-                    'X-ELS-APIKey': MY_API_KEY})
+from ak_scopus import get_scopus_list, get_scopus_data, get_scopus_refs
 
-results = resp.json()
+from config import *
+
+#
+# Script to check all the afiliations of the authors
+#
+
+#url = "http://api.elsevier.com/content/search/scopus?query=AU-ID(%s)&field=dc:identifier&count=10" % micheleCaselle
+
+
+#resp = requests.get(url, headers={'Accept':'application/json',
+#                    'X-ELS-APIKey': MY_API_KEY})
+
+
+results = get_scopus_list([micheleCaselle], '', 10)
+
+for pub in results:
+    data = get_scopus_data(pub[0])
+    print data
+
+# Todo: Implement filter to show Michele and its affiliation id !!!
+
+
+#results = resp.json()
 
 print results
 
-#for r in results['search-results']["entry"]
-#    print r
 
-#return [[str(r['dc:identifier'])] for r in results['search-results']["entry"]]