API para el DRAE
Python HTML Makefile
Switch branches/tags
Nothing to show
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
libs
templates
third_party
.gitignore
.travis.yml
Makefile
README.md
agpl.txt
app.yaml
appengine_config.py
favicon.ico
index.yaml
raequel.py
requirements.txt
test_raequel.py

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