给定文章的doi,如何使用Python获取域名?
我得到了文章的DOI地址,例如:'https://doi.org/10.1093/qje/qjr041'如何获得相应的域特异性URL或域名(' .com/')使用Python 3.0+?
I am given the DOI address of an article, for example: 'https://doi.org/10.1093/qje/qjr041' How can I get the corresponding domain-specific URL or domain name ('https://academic.oup.com/') from that DOI using Python 3.0+?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您可以使用请求模块并允许重定向执行此操作。
对于一个粗略的例子
You can do this using the requests module and allowing redirects.
For a crude example