对整数序列在线百科全书的编程访问 [英] Programmatic access to On-Line Encyclopedia of Integer Sequences

查看:37
本文介绍了对整数序列在线百科全书的编程访问的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有没有办法以编程方式从在线整数序列百科全书 (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.

这篇关于对整数序列在线百科全书的编程访问的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆