{"id":43988550,"url":"https://github.com/jvaleroliet/datosgobes","last_synced_at":"2026-02-07T10:10:57.832Z","repository":{"id":247555813,"uuid":"824201632","full_name":"jvaleroliet/datosgobes","owner":"jvaleroliet","description":"Manage data from Spain's open data portal (https://datos.gob.es/es/) easily.  The library simplifies API access and streamlines workflows for Python users.","archived":false,"fork":false,"pushed_at":"2025-04-16T16:01:09.000Z","size":39,"stargazers_count":9,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-08-27T22:27:07.082Z","etag":null,"topics":["data","datosgobes","opendata","python","spain"],"latest_commit_sha":null,"homepage":"https://pypi.org/project/datosgobes/","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/jvaleroliet.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2024-07-04T15:13:14.000Z","updated_at":"2025-04-16T16:01:12.000Z","dependencies_parsed_at":"2025-04-16T17:04:36.277Z","dependency_job_id":null,"html_url":"https://github.com/jvaleroliet/datosgobes","commit_stats":null,"previous_names":["jvaleroliet/pyopendataes","jvaleroliet/datosgobes"],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/jvaleroliet/datosgobes","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jvaleroliet%2Fdatosgobes","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jvaleroliet%2Fdatosgobes/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jvaleroliet%2Fdatosgobes/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jvaleroliet%2Fdatosgobes/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jvaleroliet","download_url":"https://codeload.github.com/jvaleroliet/datosgobes/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jvaleroliet%2Fdatosgobes/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29192148,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-07T07:37:03.739Z","status":"ssl_error","status_checked_at":"2026-02-07T07:37:03.029Z","response_time":63,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["data","datosgobes","opendata","python","spain"],"created_at":"2026-02-07T10:10:57.120Z","updated_at":"2026-02-07T10:10:57.823Z","avatar_url":"https://github.com/jvaleroliet.png","language":"Python","funding_links":[],"categories":["Datos Abiertos y Estadísticas"],"sub_categories":["Región de Murcia"],"readme":"\n# datosgobes\n\n## Introduction\ndatosgobes is a python library that provides a simple interface to access the open data API of [https://datos.gob.es/es/](https://datos.gob.es/es/). The package is designed to make it easy for users to retrieve and analyze data from the API.\n\nIt is inspired in the R library [rOpenSpain/opendataes](https://github.com/rOpenSpain/opendataes).\n\n## Installation\n\nYou can install datosgobes using pip:\n\n```python\npip install datosgobes\n```\n\n\n## Usage\nOnce installed, you can start using datosgobes by importing it in your python script:\n\n```python\nimport datosgobes \n```\n\nFirst, you need to initialize the manager:\n\n```python\nmanager = datosgobes.Manager()\n```\n\nThen, you can use the manager to search for datasets:\n\n```python\ndatasets = manager.search_datasets('sanidad')\n```\n\nYou can also retrieve a dataset by its identifier:\n\n```python\ndataset = manager.get_dataset('l01080193-resultados-absolutos-de-las-elecciones-al-parlamento-europeo-de-la-ciudad-de-barcelona')\n```\n\nOnce you have a dataset, you can retrieve its metadata, title, description...:\n\n```python\nprint(dataset.title)\nprint(dataset.description)\n```\n\nEach dataset can contain multiple distributions. They are stored in a list called `distributions`:\n\n```python\nprint(dataset.distributions)\n```\n\nYou can retrieve the data from a distribution by its list index:\n\n```python\ndistribution = dataset.distribution[0]\n```\n\nThe distribution is a class that contains information about the data, such as its title, description, format...:\n\n```python\nprint(distribution.title)\nprint(distribution.description)\nprint(distribution.format)\n```\nFinally, you can retrieve the data from the distribution:\n\n```python\ndata = distribution.data\n```\n\nThe data is returned as a pandas DataFrame, if the format is recognized, or as a raw string otherwise.\nYou can use it as you wish.\n\n## Collaboration\n\nIf you want to contribute to the project, you can fork the repository and submit a pull request. Please make sure to follow the coding standards and documentation guidelines.\n\n## License\n\ndatosgobes is released under the MIT license.\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjvaleroliet%2Fdatosgobes","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjvaleroliet%2Fdatosgobes","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjvaleroliet%2Fdatosgobes/lists"}