Browse Source

Added configuration management in subfolder etc

Andreas Kopmann 7 years ago
parent
commit
28fd5497b3
2 changed files with 109 additions and 4 deletions
  1. 10 4
      README.md
  2. 99 0
      etc/config-ipekopmann2.py

+ 10 - 4
README.md

@@ -47,18 +47,24 @@ test-scopus2.py Example from one of the website, only one query
 test-wp.py	Test script for access to the wordpress API	
 test-wp2.py 	Test script for wordpress - only query, no modification
 
+etc		Configuration files of different installations
 info            Documentation, website, etc (not in GIT)
 ```
 
 ## Usage
 
 1. Go to Scopus and retrieve the scopus author ids for the scientists in your group.
-Define the ids in my_scopus.py and group them.
+Define the ids in etc/config-<hostname>.py and group them.
 
-2. Select one of more author groups in scopus-get-publications.py (main part at
-the end of the file). Check definition of database and wordpress installation.
+2. Create a symbolic link 
+```
+ln -s etc/config-<hostname>.py  config.py
+```
+
+3. Select one of more author groups and define the list sc_workgroups in config.py
+Check the definition of database and wordpress installation.
 
-3. Execute scopus-get-publications.py.
+4. Execute scopus-get-publications.py.
 python -W ignore scopus-get-publications.py
 
 Note: The -W ignore flag might be necessary if the INSERT IGNORE causes warnings.

+ 99 - 0
etc/config-ipekopmann2.py

@@ -0,0 +1,99 @@
+# Scopus script's configration
+# A Kopmann, 12.4.17
+#
+
+# Local publication database 
+
+db_host = 'localhost'
+db_user = 'scopus'
+db_pw = '$scopus$'
+db_name = 'scopus'
+
+
+# Access to Wordpress installation 
+
+wp_api_url = "http://localhost/~kopmann/ufo2/xmlrpc.php"
+wp_user = "scopus"
+wp_password = "$scopus$"
+
+
+# Reporting
+
+log_file = "/Users/kopmann/scopus-publications.log"
+
+
+# Scopus query definition
+# Todo: 
+# - Define a single object with the defintion of the author groups
+# - Search intervall - change to last 2 years?! 
+
+MY_API_KEY = "14d431d052c2caf5e9c4b1ab7de7463d"
+
+
+# Scopus author IDs
+
+# KIT, PDV
+ak = "35313939900"
+csa = "15076530600"
+matthiasVogelgesang = "35303862100"
+timoDritschler = "56473578500"
+andreiShkarin = "56950893700"
+nicholasTanJerome = ""
+tillBergmann = "35308595100"
+armenBeglarian = "55343303900"
+petraRohr = "40561503300"
+norbertKunka = "35276889200"
+horstDemattio = "6506285395"
+
+# KIT, EPS
+micheleCaselle = "7006767859"
+urosStevanovic = "55557712600"
+lorenzoRota = "56473442500"
+matthiasBalzer = "35519411500"
+
+# KIT, IPE
+marcWeber = "56654729000"
+mw2 = "56603987800"
+mw3 = "7404138824"
+
+# KIT, IPS
+tomyRolo = "56118820400"
+tr2 = "35194644400"
+tr3 = "35277157300"
+tomasFarago = "56655045700"
+alexyErshof = "56441809800"
+romanShkarin = "56951331000"
+tiloBaumbach = "7003270957"
+thomasVandekamp = "46761453500"
+
+# TUD
+michaelHeethoff = "55979397800"
+sebastianSchmelzle = "34768986100"
+
+# UHD
+philipLoesel = "57190622016"
+
+# Others (e.g. for black list)
+ashotChiligarian = "7004126133"
+hansBluemer = "7006284555"
+matthiasKleifegs = "6602072426"
+
+
+# Definition of workgroups for automatic Scopus publication retrieval
+
+sc_start = 2010
+
+ufo_pdv = [ak, csa, matthiasVogelgesang, timoDritschler, andreiShkarin ]
+ufo_eps = [matthiasBalzer, lorenzoRota, micheleCaselle ]
+ufo_ips = [tomyRolo, tr2, tr3, tomasFarago]
+ufo_apps = [thomasVandekamp]
+ufo_alg = [philipLoesel]
+
+sc_workgroups = [
+              {'name':"Computing",'authors':ufo_pdv},
+              {'name':"Electronics",'authors':ufo_eps},
+              {'name':"X-ray Imaging",'authors':ufo_ips},
+              {'name':"Morphology",'authors':ufo_apps},
+              {'name':"Algorithms",'authors':ufo_alg}
+]
+