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

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

问题描述

是否可以通过编程方式从整数序列在线百科全书(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?

非常感谢您的帮助.

推荐答案

格式为

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天全站免登陆