python Jython:将Google Books api与OpenRefine记录一起使用

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了python Jython:将Google Books api与OpenRefine记录一起使用相关的知识,希望对你有一定的参考价值。

import urllib
data = set(row['record']['cells']['extract_persons']['value'])
liste = []
for el in data:
    liste.append('"%s"' %el)
terms = "+".join(liste)

if len(terms) > 1:
    return "https://www.googleapis.com/books/v1/volumes?q=" + urllib.quote(terms.encode('utf8')) + "&key="

以上是关于python Jython:将Google Books api与OpenRefine记录一起使用的主要内容,如果未能解决你的问题,请参考以下文章