我正在尝试使用 pyoai 将我与 OAI 提供商联系,但我收到此错误
我在 Windows 10 上使用 python3.7
这是我的代码,很简单,遵循官方 pyoai 文档 https://pypi.org/project/pyoai/
from oaipmh.client import Client
from oaipmh.metadata import MetadataRegistry, oai_dc_reader
URL = 'http://uni.edu/ir/oaipmh'
registry = MetadataRegistry()
registry.registerReader('oai_dc', oai_dc_reader)
client = Client(URL, registry)
for record in client.listRecords(metadataPrefix='oai_dc'):
print(record)
我收到 HTTPError
File "C:\..\lib\urllib\request.py", line 649, in http_error_default
raise HTTPError(req.full_url, code, msg, hdrs, fp)
urllib.error.HTTPError: HTTP Error 404: Not Found
我以为问题出在使用 python3.7 但我已经更改为 3.6 并且我遇到了同样的问题