Giter VIP home page Giter VIP logo

boe_api's Introduction

BOE_API

BOE API, is a REST API for Boletín Oficial del Estado(Official State Bulletin) of Spain. It fetches information from www.boe.es and stores it in a PostgreSQL DB (Required for performance optimizations).

Requirements

Tested on Ubuntu 12.04.

  • PostgreSQL 9.1
  • Memcache (optional, if you're not going to use it, delete it from settings)
  • Install python pip install -r requirements.txt

Use

Sincronize DB:

python manage.py syncdb

To execute the API:

python manage.py runserver

Go to your browser and type http://localhost:8080/v1/format=json and you should see API's endpoints.

To fetch new laws (from BOE.es) you can execute:

python manage.py getNewInfo 

and will fetch documents since last day stored on database or since 1960 if the database is empty.

You can pass a date to fetch laws since that date:

python manage.py getNewInfo YYYY  
python manage.py getNewInfo YYYY MM
python manage.py getNewInfo YYYY MM DD

boe_api's People

Contributors

charlisim avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.