问题描述
有没有办法以编程方式从在线整数序列百科全书 (http://oeis.org) 中搜索和检索结果?
Is there a way to search and retrieve the results from On-Line Encyclopedia of Integer Sequences (http://oeis.org) programmatically?
我搜索了他们的网站,结果总是以 html 格式返回.他们似乎没有提供 API,但在政策声明中,他们说以编程方式访问数据库是可以接受的.但是如何在不抓取屏幕的情况下做到这一点?
I have searched their site and the results are always returned in html. They do not seem to provide an API but in the policy statement they say its acceptable to access the database programmatically. But how to do it without screen scraping?
非常感谢您的帮助.
推荐答案
http://oeis.org/search?fmt=text&q=2,5,14,50,233 提供了格式良好的文本输出.
A URL of the form http://oeis.org/search?fmt=text&q=2,5,14,50,233 gives a nicely formatted text output.
但似乎没有办法以文本形式获得单个序列.
But it seems there is no way to get a single sequence in text form.
这篇关于对整数序列在线百科全书的编程访问的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!