|
62 | 62 | :top_organizations "https://code.gouv.fr/data/top_organizations.yml" |
63 | 63 | :comptes-organismes-publics "https://code.gouv.fr/data/comptes-organismes-publics.yml" |
64 | 64 | :fr-public-sector-ospo "https://code.gouv.fr/data/fr-public-sector-ospo.yml" |
65 | | - :awesome-codegouvfr "https://code.gouv.fr/data/awesome-codegouvfr.yml" |
66 | | - :cnll-providers "https://annuaire.cnll.fr/api/prestataires-sill.json" |
67 | | - :cdl-providers "https://comptoir-du-libre.org/public/export/comptoir-du-libre_export_v1.json"}) |
| 65 | + :awesome-codegouvfr "https://code.gouv.fr/data/awesome-codegouvfr.yml"}) |
68 | 66 |
|
69 | 67 | ;;; Helper functions |
70 | 68 |
|
@@ -651,32 +649,6 @@ This list is published under Licence Ouverte 2.0 and CC BY.") |
651 | 649 | json/generate-string |
652 | 650 | (spit "formations-logiciels-libres.json")))) |
653 | 651 |
|
654 | | -(defn- output-sill-providers [] |
655 | | - (let [cdl (->> (fetch-json (:cdl-providers urls)) |
656 | | - :softwares |
657 | | - (filter #(not-empty (:sill (:external_resources %)))) |
658 | | - (map (juxt #(:id (:sill (:external_resources %))) |
659 | | - #(keep (juxt :name :url |
660 | | - (fn [a] (:website (:external_resources a)))) |
661 | | - (:providers %)))) |
662 | | - (map (fn [[a b]] |
663 | | - [a (into [] (map (fn [[x y z]] |
664 | | - {:nom x :cdl_url y :website z}) b))]))) |
665 | | - cnll (->> (fetch-json (:cnll-providers urls)) |
666 | | - (map (juxt :sill_id |
667 | | - #(map (fn [p] (set/rename-keys p {:url :cnll_url})) |
668 | | - (:prestataires %)))))] |
669 | | - (->> (group-by first (concat cdl cnll)) |
670 | | - (map (fn [[id l]] [id (flatten (map second l))])) |
671 | | - (filter #(not-empty (second %))) |
672 | | - (map (fn [[id l]] |
673 | | - {:sill_id id |
674 | | - :prestataires (map #(apply merge (val %)) |
675 | | - (group-by #(str/lower-case (:nom %)) l))})) |
676 | | - (sort-by :sill_id) |
677 | | - json/generate-string |
678 | | - (spit "sill-prestataires.json")))) |
679 | | - |
680 | 652 | (defn- output-sill-latest-xml [] |
681 | 653 | (when-let [sill (fetch-json (:sill urls))] |
682 | 654 | (->> sill |
@@ -730,7 +702,6 @@ This list is published under Licence Ouverte 2.0 and CC BY.") |
730 | 702 | (output-awesome-json) |
731 | 703 | (output-awesome-md)) |
732 | 704 | (output-formations-json) |
733 | | - (output-sill-providers) |
734 | 705 | (output-sill-latest-xml)) |
735 | 706 |
|
736 | 707 | (defn- display-data! [] |
|
0 commit comments