chubin / chubin/cheat.sh

OEIS adapter broken

Open
#376 4 comments 1 reaction 0 assignees View on GitHub
Dominant language
Python
Stars
41.7k
Forks
1.9k
PR merge metrics
No merged PRs in 30d

Description

Hello!

```sh
curl cheat.sh/oeis
```

gives

```sh
curl cheat.sh/oeis/1+1+1+1
```

as an example, but executing that results in

```
/* [https://oeis.org/search?q=signed:1,1,1,1] */
```

Similar happens to all OEIS queries. I looked at OEIS and found that they have a [JSON API](https://oeis.org/wiki/JSON_Format) available through `&fmt=json`. However, looking at the code of cheat.sh's OEIS adapter, it appears to be using [`&fmt=text`](https://github.com/chubin/cheat.sh/blob/571377f2f79422398a701cb1864487124ec3dcc6/share/adapters/oeis.sh#L41) and [`&fmt=short`](https://github.com/chubin/cheat.sh/blob/571377f2f79422398a701cb1864487124ec3dcc6/share/adapters/oeis.sh#L122). While the former works ([example](https://oeis.org/search?q=1,2,3,6,11,23,47,106,235&fmt=text)), the latter seems to just open the HTML page currently ([example](https://oeis.org/search?q=1,2,3,6,11,23,47,106,235&fmt=short)).

I found that in a [tweet](https://twitter.com/BinyaminErez/status/1348446663355092996) @ErezBinyamin mentioned that they were working on a Python version of the adapter in way back in Jan 11, 2021. However, I couldn't find any more updates on that. #187 seems to still be open but there have been no updates since Oct 27, 2020.

I'd really appreciate if the issue could get addressed and have the adapter start working again. Thanks!

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.