node-rae icon indicating copy to clipboard operation
node-rae copied to clipboard

Add link to RAE API documentation

Open skangas opened this issue 3 years ago • 5 comments

Please consider adding a link to the RAE API documentation to the README.

skangas avatar Apr 27 '21 20:04 skangas

@skangas , have you found one?

lfcj avatar Jul 17 '21 20:07 lfcj

idk who told you there's an api. This library was born for scraping the site due to the absence of an api. Any documentation would be a guide to scraping the site, not to an api (as it is nonexistent).

Bestulo avatar Jul 17 '21 20:07 Bestulo

I was under the impression that there was an API, and was confused when I could not find it.

Perhaps it should be documented in the README that there is no API, and that this relies on scraping.

skangas avatar Jul 17 '21 23:07 skangas

https://github.com/tsur/node-rae/blob/estable/src/lib/clients/http/parse.js

this is the file that manages the "challenge". RAE really hates scraping so they set up challenges to try to prevent people from doing it. It does stop most attempts. They also update the challenges sometimes, breaking libraries and forcing people to adapt to the new challenges.

Bestulo avatar Jul 18 '21 00:07 Bestulo

I realised only late that it was all scraping after noticing all npm modules that fetch RAE words are now broken. Thanks for the answer, Bestulo.

lfcj avatar Jul 18 '21 06:07 lfcj