API para el DRAE
Python HTML Makefile
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
libs Add Makefile Mar 15, 2013
templates slight changes to the index template Mar 27, 2013
third_party np int Dec 24, 2017
.gitignore upgrade Oct 25, 2017
.travis.yml Add jinja2 to .travis.yml for tests Mar 25, 2013
Makefile
README.md
agpl.txt first commit Nov 2, 2010
app.yaml upgrade Oct 25, 2017
appengine_config.py upgrade Oct 25, 2017
favicon.ico first commit Nov 2, 2010
index.yaml first commit Nov 2, 2010
raequel.py import lulz Dec 24, 2017
requirements.txt import lulz Dec 24, 2017
test_raequel.py Add tests Mar 25, 2013

README.md

Raequel

RAEQUEL is currently broken, RAE actively fights against scraping, and I have not done significant effort on cracking it.

contact me at raequel@sebastianoliva.com if you want to help/code/talk.

An API for the Real Academia Española Dictionary

Raequel is an informal API to realize automated queries to buscon.rae.es, returning it on JSON (and then XML) Raequel is free software under the GNU AGPL 3.0.

Dictionary Icon from http://www.openclipart.org/detail/29190

Installing

Register your application in Google App Engine

upload the application using the google_app engine for python SDK

$ cd raequel

Modify app.yml to point to your new app engine application, you will have to modify the application name

$ appcfg.py update .

Using the API

GET

$ curl "http://raequel.sebastianoliva.com/json?query=idioma"

REST

$ curl "http://raequel.sebastianoliva.com/w/xml/papa"
$ curl "http://raequel.sebastianoliva.com/w/json/papa"

JSONP

You could also call it from your javascript code executed in client side.

For example, using jquery:

<script src="jquery.js" type="text/javascript"></script>
<script type="text/javascript" charset="utf-8">
   $(function() {
    $.getJSON('http://raequel.sebastianoliva.com/w/json/idioma', function(data) {
            console.log(data);
        });
    });
</script>

More info at raequel.sebastianoliva.com