openkratio / proyecto-colibri Goto Github PK
View Code? Open in Web Editor NEWLas votaciones del Congreso de los Diputados de España (via API)
License: GNU General Public License v3.0
Las votaciones del Congreso de los Diputados de España (via API)
License: GNU General Public License v3.0
Swagger documentation has problems on detect custom fields like session in vote resource.
If the request include session parameters the response get zero elements.
Scrapy shows some errors of this kind when running scrapy crawl votes:
2015-08-08 20:17:55+0200 [votes] ERROR: Spider must return Request, BaseItem or None, got 'Voting' in <GET http://www.congreso.es/votaciones/OpenData?sesion=274&votacion=2&legislatura=10>
2015-08-08 20:17:55+0200 [votes] DEBUG: Crawled (200) <GET http://www.congreso.es/votaciones/OpenData?sesion=274&votacion=1&legislatura=10> (referer: http://www.congreso.es/portal/page/portal/Congreso/Congreso/Actualidad/Votaciones?_piref73_10908194_73_9536063_9536063.next_page=%2Fwc%2FaccesoHistoricoVotaciones&fechaSeleccionada=2015%2F06%2F23)
2015-08-08 20:17:56+0200 [votes] ERROR: Spider must return Request, BaseItem or None, got 'Voting' in <GET http://www.congreso.es/votaciones/OpenData?sesion=274&votacion=1&legislatura=10>
2015-08-08 20:17:56+0200 [votes] DEBUG: Crawled (200) <GET http://www.congreso.es/votaciones/OpenData?sesion=276&votacion=10&legislatura=10> (referer: http://www.congreso.es/portal/page/portal/Congreso/Congreso/Actualidad/Votaciones?_piref73_10908194_73_9536063_9536063.next_page=%2Fwc%2FaccesoHistoricoVotaciones&fechaSeleccionada=2015%2F06%2F25)
Hi!
It would be awesome if some API calls could be sorted by field (e.g. date).
Example:
# send with params:
# sort=date
http://proyectocolibri.es/api/v1/session/
I hope someone can help me. I reinstall all project to prepare an environment for developing a new aggregation functionality and I found this issue.
Traceback (most recent call last):
File "/home/edipotrebol/env/colibri/bin/scrapy", line 4, in <module>
execute()
File "/home/edipotrebol/env/colibri/local/lib/python2.7/site-packages/scrapy/cmdline.py", line 109, in execute
settings = get_project_settings()
File "/home/edipotrebol/env/colibri/local/lib/python2.7/site-packages/scrapy/utils/project.py", line 60, in get_project_settings
settings.setmodule(settings_module_path, priority='project')
File "/home/edipotrebol/env/colibri/local/lib/python2.7/site-packages/scrapy/settings/__init__.py", line 109, in setmodule
module = import_module(module)
File "/usr/lib/python2.7/importlib/__init__.py", line 37, in import_module
__import__(name)
File "/home/edipotrebol/dev/proyecto-colibri/scrap/settings.py", line 12, in <module>
from django.core.management import setup_environ
ImportError: cannot import name setup_environ
The json response doesn't have default encoding.
maybe with charset='utf-8' could be resolve it.
The filter session don't working.
It need to add a relationship Session-Voting to the resource Voting and create the resource Session.
Install sphinx, genrate documentation and add this to readthedocs.org
Scrapy shows some errors of this kind when running scrapy crawl initiatives:
File "/usr/local/lib/python2.7/dist-packages/amqp/transport.py", line 294, in create_transport
return TCPTransport(host, connect_timeout)
File "/usr/local/lib/python2.7/dist-packages/amqp/transport.py", line 95, in __init__
raise socket.error(last_err)
socket.error: [Errno 111] Connection refused
2015-08-08 20:20:33+0200 [initiatives] DEBUG: Crawled (200) <GET http://www.congreso.es/portal/page/portal/Congreso/Congreso/Iniciativas/Indice%20de%20Iniciativas?BASE=IW10&CMD=VERLST&DOCORDER=FIFO&DOCS=801-825&FMT=INITXLUS.fmt&OPDEF=Y&QUERY=%28I%29.ACIN1.+%26+%28219%29.SINI.&_piref73_1335503_73_1335500_1335500.next_page=%2Fwc%2FservidorCGI> (referer: http://www.congreso.es/portal/page/portal/Congreso/Congreso/Iniciativas/Indice%20de%20Iniciativas?BASE=IW10&CMD=VERLST&DOCORDER=FIFO&DOCS=751-775&FMT=INITXLUS.fmt&OPDEF=Y&QUERY=%28I%29.ACIN1.+%26+%28219%29.SINI.&_piref73_1335503_73_1335500_1335500.next_page=%2Fwc%2FservidorCGI)
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.