使用Google专利api

2024-04-29 03:09:52 发布

您现在位置:Python中文网/ 问答频道 /正文

我只想使用Python和Google专利搜索API找到一个专利的所有者。

import urllib2
import json

url = ('https://ajax.googleapis.com/ajax/services/search/patent?' +
       'v=1.0&q=barack%20obama')

request = urllib2.Request(url, None, {})
response = urllib2.urlopen(request)

# Process the JSON string.
print json.load(response)
# now have some fun with the results...

这个结果并不能说明受让人的情况。我怎么才能拿到?


Tags: thehttpsimportcomapijsonurlresponse