Browse Source

Added config parameter to deactivate the retrieval of citations; the feature is blocked now by Scopus

Andreas Kopmann 6 years ago
parent
commit
6b398caf0b
2 changed files with 12 additions and 9 deletions
  1. 7 2
      etc/config_ufo_kit_edu.py
  2. 5 7
      scopus_get_publications.py

+ 7 - 2
etc/config_ufo_kit_edu.py

@@ -32,7 +32,7 @@ log_file = "/root/scopus/log/scopus-publications-ufo-kit-edu.log"
 
 MY_API_KEY = "14d431d052c2caf5e9c4b1ab7de7463d"
 """ Scopus access key (Andreas Kopmann) """
-
+DTS_API_KEY = "f2b35fe46478f22f3c14cf53f73d4f93"
 
 # Scopus author IDs
 
@@ -71,6 +71,7 @@ alexyErshof = "56441809800"
 romanShkarin = "56951331000"
 tiloBaumbach = "7003270957"
 thomasVandekamp = "46761453500"
+danielHaenschke = "55532222200"
 
 # TUD
 michaelHeethoff = "55979397800"
@@ -88,10 +89,14 @@ matthiasKleifegs = "6602072426"
 # Definition of workgroups for automatic Scopus publication retrieval
 
 sc_start = 2010
+sc_citations = False
+sc_keywords = True
+sc_max_authors = 25
+
 
 ufo_pdv = [ak, ak2, csa, matthiasVogelgesang, timoDritschler ]
 ufo_eps = [matthiasBalzer, lorenzoRota, micheleCaselle, mc2 ]
-ufo_ips = [tomyRolo, tr2, tr3, tomasFarago]
+ufo_ips = [tomyRolo, tr2, tr3, tomasFarago, danielHaenschke]
 ufo_apps = [thomasVandekamp]
 ufo_alg = [philipLoesel]
 

+ 5 - 7
scopus_get_publications.py

@@ -367,15 +367,13 @@ if __name__ == "__main__":
 
     # read all citations
     # Todo: read only new citations?!
+    if sc_citations:
+        update_citations()
 
-    update_citations()
+        # loop over all cites and post comments to wordpress, when necessary
+        # update database
 
-
-    # loop over all cites and post comments to wordpress, when necessary
-    # update database
-
-    update_wp_comments()
-    # Todo: deactivate comments for scopus posts!!!
+        update_wp_comments()
 
 
     # Display summary