0

我正在使用 Web of Science API 和 suds 来检索文章记录。我想创建一个包含所有不同 ISSN 的列表,但我无法访问 suds 对象中的这些数据。以下是一条记录的完整响应:

(searchResults){
   queryId = "1"
   recordsFound = 16922
   recordsSearched = 52057936
   records[] = 
      (liteRecord){
         uid = "WOS:000086498700003"
         title[] = 
            (labelValuesPair){
               label = "Title"
               value[] = 
                  "Why young people do not kill themselves: The Reasons for Living Inventory for Adolescents",
            },
         source[] = 
            (labelValuesPair){
               label = "Issue"
               value[] = 
                  "2",
            },
            (labelValuesPair){
               label = "Pages"
               value[] = 
                  "177-187",
            },
            (labelValuesPair){
               label = "Published.BiblioDate"
               value[] = 
                  "JUN",
            },
            (labelValuesPair){
               label = "Published.BiblioYear"
               value[] = 
                  "2000",
            },
            (labelValuesPair){
               label = "SourceTitle"
               value[] = 
                  "JOURNAL OF CLINICAL CHILD PSYCHOLOGY",
            },
            (labelValuesPair){
               label = "Volume"
               value[] = 
                  "29",
            },
         authors[] = 
            (labelValuesPair){
               label = "Authors"
               value[] = 
                  "Gutierrez, PM",
                  "Osman, A",
                  "Kopper, BA",
                  "Barrios, FX",
            },
         other[] = 
            (labelValuesPair){
               label = "Identifier.Ids"
               value[] = 
                  "304RV",
            },
            (labelValuesPair){
               label = "Identifier.Issn"
               value[] = 
                  "0047-228X",
            },
            (labelValuesPair){
               label = "Identifier.Xref_Doi"
               value[] = 
                  "10.1207/S15374424jccp2902_4",
            },
            (labelValuesPair){
               label = "ResearcherID.Disclaimer"
               value[] = 
                  "ResearcherID data provided by Thomson Reuters",
            },
      },
 }

我可以检索所有other列表,但我不确定如何通过标签识别和检索 ISSN,以便将其添加到列表中。给出的类型是:suds.sudsobject.labelValuePair。IANAP 并且只对 Python 有基本的了解,因此我将非常感谢您的帮助。

4

1 回答 1

0

这是一种选择:

soap = wos.WokmwsSoapClient()
results = soap.search(YOUR QUERY HERE)
for i in range(0, len(results.records[0].other)):
    if results.records[0].other[i]["label"] == "Identifier.Issn":
        print results.records[0].other[i]["value"][0]
于 2013-11-18T08:17:42.533 回答