我只是想用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...这个结果并没有说明受让人的情况。我怎么才能拿到呢?
发布于 2015-09-18 22:51:13
谷歌专利API被废弃("截至2011年5月26日,谷歌专利搜索API已被正式否决。")。我不认为你得到的数据是可靠的。
我不确定谷歌的服务条款是否允许与单独的谷歌专利页面相反,但一种策略可能是使用搜索来获取结果列表,然后使用类似于美汤的方法来解析每个结果。
示例:
import urllib2
import json
from bs4 import BeautifulSoup
url = ('https://ajax.googleapis.com/ajax/services/search/patent?' +
'v=1.0&q=barack%20obama')
request = urllib2.Request(url, None, {})
response = urllib2.urlopen(request)
jsonResponse = json.load(response)
responseData=jsonResponse['responseData']
results = responseData["results"]
print "This doesn't work, no assignee data..."
for result in results:
print "patent no.: ", result["patentNumber"]
print "assignee: ", result["assignee"]
print " "
print "...but this seems to."
for result in results:
URL = "https://www.google.com/patents/"+result["patentNumber"]
req = urllib2.Request(URL, headers={'User-Agent' : "python"})
_file = urllib2.urlopen(req)
patent_html = _file.read()
soup = BeautifulSoup(patent_html, 'html.parser')
patentNumber = soup.find("span", { "class" : "patent-number" }).text
assigneeMetaTag = soup.find("meta", { "scheme" : "assignee"})
patentAssignee = assigneeMetaTag.attrs["content"]
print "patent no.: ", patentNumber
print "assignee: ", patentAssignee
print " "对我来说这是打印出来的:
This doesn't work, no assignee data...
patent no.: US20110022394
assignee:
patent no.: US20140089323
assignee:
patent no.: US8117227
assignee:
patent no.: CA2702937C
assignee:
...but this seems to.
patent no.: US 20110022394 A1
assignee: Thomas Wide
patent no.: US 20140089323 A1
assignee: Appinions Inc.
patent no.: US 8117227 B2
assignee: Scuola Normale Superiore Di Pisa
patent no.: CA 2702937 C
assignee: Neil S. Roseman请注意,我相信你只有在专利签发之日才能得到受让人,而不是目前的受让人,在转让的情况下。
发布于 2020-03-14 23:15:49
用https://www.patentsview.org/代替..。
不久前,我还在使用谷歌专利搜索API。它不见了。前面提到的ipstreet也是如此。
但是我确实发现了https://www.patentsview.org/,它似乎得到了USPTO和一个全面的API的支持。首先,看一看:
https://www.patentsview.org/api/query-language.html现在,我正在更新我的解析器,以代替它。
发布于 2022-08-17 15:24:00
你应该看看patent_client!它是一个python模块,它使用Django风格的API搜索活跃的USPTO和EPO数据库。然后,任何查询的结果都可以通过简单的DataFrames调用转换成熊猫、.to_pandas()或Series。
对于专利所有权,有两种方法。您可以检查专利的“受让人”字段,也可以搜索转让记录:
from patent_client import Assignment, Patent
# Method 1 - Look at the Assignee listed on the face of a patent
pat = Patent.objects.get("patent number")
pat.assignees
# Gives a list of assignees listed on the patent
# Method 2 - Search Assignment records for recorded assignments
assignments = Assignment.objects.filter(patent_number="patent_number")
# Gives a list of assignment records that include the patent,
# You can browse through the authoritative chain of title as
# recorded with the USPTO一个很好的起点是用户指南简介
(完全披露-我是patent_client的作者和维护者)
https://stackoverflow.com/questions/32637023
复制相似问题