Last active
February 26, 2024 20:37
-
-
Save HappiePlant/5d0da9acaeb5261a8fecf40afcecacf8 to your computer and use it in GitHub Desktop.
Nushell command to get a list of all domains of the Dutch government / Nederlandse overheid
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # ODS Source: https://www.communicatierijk.nl/vakkennis/rijkswebsites/verplichte-richtlijnen/websiteregister-rijksoverheid | |
| # Direct source: https://www.communicatierijk.nl/binaries/communicatierijk/documenten/publicaties/2016/05/26/websiteregister/websiteregister-rijksoverheid-2024-01-25.ods | |
| open websiteregister-rijksoverheid-2024-01-25.ods | |
| | get Sheet1.column0 | |
| | skip 2 | |
| | str replace "http://" "" | |
| | split column . | |
| | each {|e| | |
| transpose | |
| | get column1 | |
| | last 2 | |
| | str join . | |
| } | |
| | uniq | |
| | split column / | |
| | get column1 | |
| | uniq |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment