sderaco / raequel

API para el DRAE

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Raequel

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

About

API para el DRAE


Languages

Language:Python 59.5%Language:HTML 35.0%Language:Makefile 5.4%