Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Let's up the data #1

Open
loleg opened this issue Feb 18, 2021 · 4 comments
Open

Let's up the data #1

loleg opened this issue Feb 18, 2021 · 4 comments

Comments

@loleg
Copy link
Member

loleg commented Feb 18, 2021

It has been a while, 6 years more or less, since this scraper last run. There could be some code issues, though the error points to line #93, so most likely there's a minor change to the source website.

It would be nice to do this in time for Open Data Day in a couple of weeks, as we have been discussing in datasets/publicbodies#102

@loleg
Copy link
Member Author

loleg commented Feb 18, 2021

As I don't have the patience or debugging environment set up for PHP, if it were up to me I would quickly migrate this Python. Any other thoughts @hannesgassert ?

@hannesgassert
Copy link
Member

hannesgassert commented Feb 19, 2021 via email

loleg added a commit that referenced this issue Mar 24, 2023
Without having to scrape anything, a call to the new [staatskalender API](https://www.staatskalender.admin.ch/api/organization/navigation/estkal) currently returns 2 levels of structure. From this, additional calls [can be made like this](https://www.staatskalender.admin.ch/api/organization/10000025) with the `id` of the corresponding federal office obtains the next levels of data, including contact details. This would be a nice strategy to update the public bodies data going forward.
@loleg
Copy link
Member Author

loleg commented Mar 24, 2023

Without having to scrape anything, a call to the new staatskalender API currently returns 2 levels of structure. From this, additional calls can be made like this with the id of the corresponding federal office obtains the next levels of data, including contact details. This would be a nice strategy to update the public bodies data going forward.

@loleg
Copy link
Member Author

loleg commented Mar 24, 2023

Thanks to Raphaël Jeannerat (BK) for bringing this up at the recent hackathon, and suggesting also to look into the FEDLEX publications platform where the official / legal acts containing the government structure are available. The format is subject to improvement.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants