-
Notifications
You must be signed in to change notification settings - Fork 7
[Feat] [Important] Get data from ENSE #159
Comments
A little input from someone who hasn't been involved in development: In preliminary testing, due to ENSE blocking the direct table data download, it seems the fusiontables endpoints are returning 403 Forbidden (except for The "private" viz API seems to work and returns JSONP (SELECT * JSONP URL), although some testing is required as I suspect google will detect the bot and start asking for captchas. |
@tiagoad thanks! Can we switch to English so that everyone can contribute? Thank you. |
With quick research, I've found that when calling with this URL we can have the data in a table. |
By the way, if google DOES block the direct JSONP requests, it would be trivial to write a puppeteer script that launches a google chrome instance on this URL and intercepts the requests as they come. |
So, one solution would be having a puppeter script that produces a json file every X minutes with ENSE parsed data and then a Console command that reads that JSON file to the database every X+Y minutes. |
Yes, but only if we see direct HTTP download is failing, I think. |
Making a request to this URL seems to return a long json object inside a js function. |
@Cotemero would @mribeiro be able to also inject data on the database with this method? |
Hi @JorgeMiguelGomes @Cotemero , The script adapts to the columns: so if one is added (or removed/edited) the output adapts accordingly. |
@mribeiro can you provide the script? I think that will be enough for what we need! |
@tomahock All available in https://github.com/mribeiro/ense_parser ! Shall I move this to in progress? |
Context
ENSE is the official entity in Portugal.
As far as we know they are getting information every day in the morning and in the afternoon.
On this website they have information regarding the REPA network
Problem
ENSE will not share their data in an open format. The way that the information is presented is not user friendly
Objective
608766585309626368
The text was updated successfully, but these errors were encountered: