首页 > 解决方案 > 为什么我在使用 R 中的“patentsview”下载专利数据时遇到问题

问题描述

我正在尝试使用 R 中的“patentsview”包获取专利数据,但我总是遇到错误,并且在任何地方都找不到解决方案。这是我的代码 -

# Load library
library(patentsview)

# Write query
query <- with_qfuns(
  and(
    begins(cpc_subgroup_id = 'G06N'),
    gte(patent_year = 2020)
  )
)

# Create a list of fields
# get_fields(endpoint = "patents")

# Needed Fields
fields <- c(
  "patent_id",
  "patent_title",
  "patent_abstract",
  "patent_date"
)

# Send an HTTP request to the PatentsView API to get the data
pv_res <- search_pv(query = query, fields = fields, all_pages = TRUE)

输出是 -

Error in xheader_er_or_status(resp) : Not Found (HTTP 404).

我在这里做错了什么?解决方案是什么?

标签: rpatentsview

解决方案


推荐阅读