concat ebook programme pirate

This commit is contained in:
Tykayn 2024-06-10 15:42:10 +02:00 committed by tykayn
parent a675c633a1
commit 8192387c1f
13 changed files with 22161 additions and 0 deletions

30
pirate_program/README.md Normal file
View File

@ -0,0 +1,30 @@
# Programme pirate
Récupération des infos de chaque article constituant le programme collectivement constitué par les membres du Parti Pirate afin d'en réaliser un rendu html puis un ebook.
## scraping depuis le site
https://partipirate.org/programTags
```
#main figcaption a
```
exemple de lien:
https://partipirate.org/program/index/agriculture_peche_et_cultures_marines___agriculture_et_numerique
# pages du site détaillant un point de programme
```
#main figure h1
#main figure ul
#main figure img[src]
#main #article-date
#main #content
```
exemple de lien:
https://partipirate.org/program/index/environnement_climat_et_energie___climat

File diff suppressed because one or more lines are too long

View File

@ -0,0 +1,47 @@
import requests
from bs4 import BeautifulSoup
import json
import codecs
import time
def scrape_page(url):
# Récupérer le contenu HTML de la page
response = requests.get(url)
soup = BeautifulSoup(response.content, "html.parser")
# Extraire les informations de la page
title = soup.select_one("#main figure h1").text.strip()
tags = ", ".join([a.text.strip() for a in soup.select_one("#main figure ul").find_all("a")])
image_url = soup.select_one("#main figure img")["src"]
date = soup.select_one("#main #article-date").text.strip()
content = soup.select_one("#main #content").text.strip()
html_content = str(soup.select_one("#main #content"))
return {
"title": title,
"tags": tags,
"image": image_url,
"date": date,
"content": content,
"html_content": html_content,
"url": url
}
# Charger les URL depuis le fichier JSON
with open("partipirate_links.json", "r", encoding="utf-8") as f:
urls = json.load(f)
# Boucler sur les URL
all_pages = []
counter=1
for url in urls:
if counter < 1000:
print(f"{counter} / {len(urls)}, récupération de la page ", url)
page = scrape_page(url)
all_pages.append(page)
time.sleep(0.2)
counter+=1
# Enregistrer les informations dans le fichier JSON
with open("all_pages.json", "w", encoding="utf-8") as f:
json.dump(all_pages, f, ensure_ascii=False, indent=4)

View File

@ -0,0 +1,4 @@
#!/usr/bin/env bash
pandoc -i index.html -o programme_pirate.epub
echo "programme régénéré en ebook : programme_pirate.epub"

16556
pirate_program/index.html Normal file

File diff suppressed because one or more lines are too long

21
pirate_program/index.py Normal file
View File

@ -0,0 +1,21 @@
import requests
from bs4 import BeautifulSoup
import json
# URL de la page
url = "https://partipirate.org/programTags"
# Récupérer le contenu HTML de la page
response = requests.get(url)
soup = BeautifulSoup(response.content, "html.parser")
# Extraire les ancres "#main figcaption a" et leurs attributs "href"
links = []
for a in soup.select("#main figcaption a"):
href = a.get("href")
if href:
links.append(href)
# Enregistrer les liens dans un fichier JSON
with open("partipirate_links.json", "w") as f:
json.dump(links, f, indent=4)

View File

@ -0,0 +1,527 @@
[
"https://partipirate.org/program/index/agriculture_peche_et_cultures_marines___agriculture_et_numerique",
"https://partipirate.org/program/index/environnement_climat_et_energie___animal_et_societe",
"https://partipirate.org/program/index/affaires_sociales_et_sante___approvisionnement_durable_pour_la_restauration_collective",
"https://partipirate.org/program/index/education_culture_recherche_et_connaissance_libre___agroecologie_lycee",
"https://partipirate.org/program/index/agriculture_peche_et_cultures_marines___agriculture_de_conservation",
"https://partipirate.org/program/index/agriculture_peche_et_cultures_marines___interdiction_de_la_biopiraterie",
"https://partipirate.org/program/index/environnement_climat_et_energie___mesure_en_faveur_des_animaux_elevage",
"https://partipirate.org/program/index/agriculture_peche_et_cultures_marines___mettre_fin_elevage_fourrure",
"https://partipirate.org/program/index/agriculture_peche_et_cultures_marines___occupation_des_terres",
"https://partipirate.org/program/index/agriculture_peche_et_cultures_marines___plan_developpement_agriculture_urbaine",
"https://partipirate.org/program/index/agriculture_peche_et_cultures_marines___droit_commercialisation_semences_paysannes",
"https://partipirate.org/program/index/agriculture_peche_et_cultures_marines___une_europe_durable",
"https://partipirate.org/program/index/agriculture_peche_et_cultures_marines___utilisation_de_technologies_et_solutions_numeriques",
"https://partipirate.org/program/index/brevets___brevets_medecine_et_sante",
"https://partipirate.org/program/index/brevets___delai_domaine_public",
"https://partipirate.org/program/index/agriculture_peche_et_cultures_marines___agriculture_de_conservation",
"https://partipirate.org/program/index/agriculture_peche_et_cultures_marines___interdiction_de_la_biopiraterie",
"https://partipirate.org/program/index/education_culture_recherche_et_connaissance_libre___introduction",
"https://partipirate.org/program/index/brevets___les_brevets_dans_une_societe_de_l_information",
"https://partipirate.org/program/index/brevets___les_brevets_a_l_ere_de_l_information",
"https://partipirate.org/program/index/societe_civile___pacte_logiciel_libre",
"https://partipirate.org/program/index/affaires_internationales___politique_commerciale_internationale",
"https://partipirate.org/program/index/agriculture_peche_et_cultures_marines___droit_commercialisation_semences_paysannes",
"https://partipirate.org/program/index/education_culture_recherche_et_connaissance_libre___promotion_des_communs_et_de_la_culture_libre",
"https://partipirate.org/program/index/brevets___reequilibrer_les_brevets_avec_le_bien_commun",
"https://partipirate.org/program/index/brevets___reglementation_internationale_des_monopoles_sur_la_production_intellectuelles",
"https://partipirate.org/program/index/institutions___controle_de_action_municipale",
"https://partipirate.org/program/index/affaires_sociales_et_sante___creation_de_mairie_mobile",
"https://partipirate.org/program/index/institutions___deontologie_des_elus",
"https://partipirate.org/program/index/societe_civile___developpement_des_outiltheques",
"https://partipirate.org/program/index/institutions___disponibilite_des_elus",
"https://partipirate.org/program/index/education_culture_recherche_et_connaissance_libre___esport_et_jeux_video",
"https://partipirate.org/program/index/urbanisme_et_transports___gratuite_des_transports_en_commun",
"https://partipirate.org/program/index/urbanisme_et_transports___instaurer_un_cadastre_des_loyers_habitation_et_encadrer_les_evolutions",
"https://partipirate.org/program/index/droits_humains_a_l_ere_numerique___interdiction_de_la_reconnaissance_faciale_dans_espace_public",
"https://partipirate.org/program/index/institutions___lutte_contre_la_corruption",
"https://partipirate.org/program/index/institutions___lutte_contre_les_conflits_interet",
"https://partipirate.org/program/index/institutions___montant_des_indemnites",
"https://partipirate.org/program/index/education_culture_recherche_et_connaissance_libre___moratoire_sur_acces_numerique_catalogues_culturels_municipaux",
"https://partipirate.org/program/index/droits_humains_a_l_ere_numerique___moratoire_sur_la_video_surveillance",
"https://partipirate.org/program/index/economie_finance_et_fiscalite___participation_au_dispositif_territoire_zero_chomeurs_de_longue_duree",
"https://partipirate.org/program/index/institutions___participation_des_citoyens_aux_decisions_locales",
"https://partipirate.org/program/index/societe_civile___police_municipale_respect_des_espaces_de_circulation",
"https://partipirate.org/program/index/environnement_climat_et_energie___voitures_individuelles",
"https://partipirate.org/program/index/institutions___fonctionnement_conseils_municipaux",
"https://partipirate.org/program/index/institutions___reconnaissance_des_elus_minoritaires",
"https://partipirate.org/program/index/economie_finance_et_fiscalite___soutien_a_economie_sociale_et_solidaire",
"https://partipirate.org/program/index/institutions___transparence_de_action_publique",
"https://partipirate.org/program/index/urbanisme_et_transports___vegetalisation_des_abris_bus",
"https://partipirate.org/program/index/economie_finance_et_fiscalite___fonds_structurels",
"https://partipirate.org/program/index/education_culture_recherche_et_connaissance_libre___libre_circulation_des_connaissances_et_education",
"https://partipirate.org/program/index/brevets___brevets_medecine_et_sante",
"https://partipirate.org/program/index/brevets___delai_domaine_public",
"https://partipirate.org/program/index/societe_civile___developpement_des_outiltheques",
"https://partipirate.org/program/index/environnement_climat_et_energie___economie_energie_consommation",
"https://partipirate.org/program/index/environnement_climat_et_energie___energie",
"https://partipirate.org/program/index/urbanisme_et_transports___gratuite_des_transports_en_commun",
"https://partipirate.org/program/index/urbanisme_et_transports___instaurer_un_cadastre_des_loyers_habitation_et_encadrer_les_evolutions",
"https://partipirate.org/program/index/environnement_climat_et_energie___interdiction_ecran_publicitaires_video",
"https://partipirate.org/program/index/education_culture_recherche_et_connaissance_libre___introduction",
"https://partipirate.org/program/index/economie_finance_et_fiscalite___la_faille_du_contrat_sociale",
"https://partipirate.org/program/index/droits_humains_a_l_ere_numerique___la_grande_secu_pour_une_reforme_de_la_prise_en_charge_des_frais_de_sante_par_l_assurance_maladie",
"https://partipirate.org/program/index/education_culture_recherche_et_connaissance_libre___savoir_commun",
"https://partipirate.org/program/index/brevets___les_brevets_dans_une_societe_de_l_information",
"https://partipirate.org/program/index/brevets___les_brevets_a_l_ere_de_l_information",
"https://partipirate.org/program/index/societe_civile___pacte_logiciel_libre",
"https://partipirate.org/program/index/education_culture_recherche_et_connaissance_libre___science",
"https://partipirate.org/program/index/environnement_climat_et_energie___pour_une_transition_energetique_decarbonee",
"https://partipirate.org/program/index/spatial___profiter_des_avantages_du_programme_spatial",
"https://partipirate.org/program/index/education_culture_recherche_et_connaissance_libre___promotion_des_communs_et_de_la_culture_libre",
"https://partipirate.org/program/index/brevets___reequilibrer_les_brevets_avec_le_bien_commun",
"https://partipirate.org/program/index/education_culture_recherche_et_connaissance_libre___reforme_du_droit_d_auteur",
"https://partipirate.org/program/index/brevets___reglementation_internationale_des_monopoles_sur_la_production_intellectuelles",
"https://partipirate.org/program/index/economie_finance_et_fiscalite___revenu_de_base_-_montant_financement_et_versement",
"https://partipirate.org/program/index/economie_finance_et_fiscalite___soutien_a_economie_sociale_et_solidaire",
"https://partipirate.org/program/index/urbanisme_et_transports___vegetalisation_des_abris_bus",
"https://partipirate.org/program/index/education_culture_recherche_et_connaissance_libre___diversite_educative",
"https://partipirate.org/program/index/brevets___delai_domaine_public",
"https://partipirate.org/program/index/environnement_climat_et_energie___divertissements_et_spectacles",
"https://partipirate.org/program/index/education_culture_recherche_et_connaissance_libre___informatique_ecole",
"https://partipirate.org/program/index/societe_civile___esport",
"https://partipirate.org/program/index/education_culture_recherche_et_connaissance_libre___esport_et_jeux_video",
"https://partipirate.org/program/index/education_culture_recherche_et_connaissance_libre___introduction",
"https://partipirate.org/program/index/education_culture_recherche_et_connaissance_libre___promotion_des_communs_et_de_la_culture_libre",
"https://partipirate.org/program/index/education_culture_recherche_et_connaissance_libre___reforme_du_droit_d_auteur",
"https://partipirate.org/program/index/brevets___reglementation_internationale_des_monopoles_sur_la_production_intellectuelles",
"https://partipirate.org/program/index/environnement_climat_et_energie___environnement",
"https://partipirate.org/program/index/environnement_climat_et_energie___abolition_chasse_a_courre",
"https://partipirate.org/program/index/environnement_climat_et_energie___animal_et_societe",
"https://partipirate.org/program/index/environnement_climat_et_energie___animaux_de_compagnie",
"https://partipirate.org/program/index/affaires_sociales_et_sante___approvisionnement_durable_pour_la_restauration_collective",
"https://partipirate.org/program/index/environnement_climat_et_energie___chasse_a_la_glu",
"https://partipirate.org/program/index/environnement_climat_et_energie___climat",
"https://partipirate.org/program/index/environnement_climat_et_energie___divertissements_et_spectacles",
"https://partipirate.org/program/index/environnement_climat_et_energie___economie_energie_consommation",
"https://partipirate.org/program/index/environnement_climat_et_energie___economie_energie_logement",
"https://partipirate.org/program/index/agriculture_peche_et_cultures_marines___agriculture_de_conservation",
"https://partipirate.org/program/index/environnement_climat_et_energie___experimentation_animale",
"https://partipirate.org/program/index/environnement_climat_et_energie___faune_sauvage",
"https://partipirate.org/program/index/environnement_climat_et_energie___interdiction_chasse_dimanche",
"https://partipirate.org/program/index/environnement_climat_et_energie___interdiction_ecran_publicitaires_video",
"https://partipirate.org/program/index/environnement_climat_et_energie___interdiction_generale_de_l_utilisation_des_technologies_a_base_de_cyanure_dans_l_industrie_miniere",
"https://partipirate.org/program/index/environnement_climat_et_energie___mesure_en_faveur_des_animaux_elevage",
"https://partipirate.org/program/index/agriculture_peche_et_cultures_marines___occupation_des_terres",
"https://partipirate.org/program/index/environnement_climat_et_energie___pour_une_transition_energetique_decarbonee",
"https://partipirate.org/program/index/environnement_climat_et_energie___reduction_des_emissions_de_co2_des_vehicules_pour_particulier",
"https://partipirate.org/program/index/environnement_climat_et_energie___aides_publiques_societe_ecologique",
"https://partipirate.org/program/index/agriculture_peche_et_cultures_marines___sauvegarder_le_principe_de_diversite_biologique",
"https://partipirate.org/program/index/agriculture_peche_et_cultures_marines___une_europe_durable",
"https://partipirate.org/program/index/agriculture_peche_et_cultures_marines___utilisation_de_technologies_et_solutions_numeriques",
"https://partipirate.org/program/index/environnement_climat_et_energie___environnement",
"https://partipirate.org/program/index/societe_civile___financement_des_campagnes_electorales",
"https://partipirate.org/program/index/economie_finance_et_fiscalite___fonds_structurels",
"https://partipirate.org/program/index/education_culture_recherche_et_connaissance_libre___libre_circulation_des_connaissances_et_education",
"https://partipirate.org/program/index/affaires_internationales___resolution_des_conflits",
"https://partipirate.org/program/index/droits_humains_a_l_ere_numerique___securite_a_l_ere_du_numerique",
"https://partipirate.org/program/index/affaires_sociales_et_sante___acces_a_la_sante_et_confort_du_patient",
"https://partipirate.org/program/index/affaires_internationales___affaires_etrangeres",
"https://partipirate.org/program/index/droits_humains_a_l_ere_numerique___ameliorer_les_infrastructures_du_net",
"https://partipirate.org/program/index/droits_humains_a_l_ere_numerique___arret_des_nouveaux_plans_de_surveillance",
"https://partipirate.org/program/index/affaires_internationales___asile",
"https://partipirate.org/program/index/brevets___brevets_medecine_et_sante",
"https://partipirate.org/program/index/spatial___buts_a_long_terme",
"https://partipirate.org/program/index/environnement_climat_et_energie___climat",
"https://partipirate.org/program/index/droits_humains_a_l_ere_numerique___controle_des_exportations_des_technologies_de_surveillance_et_de_censure",
"https://partipirate.org/program/index/economie_finance_et_fiscalite___course_vers_le_bas",
"https://partipirate.org/program/index/affaires_internationales___cyber_defense",
"https://partipirate.org/program/index/droits_humains_a_l_ere_numerique___debloquer_le_net_pour_un_droit_a_l_interoperabilite",
"https://partipirate.org/program/index/spatial___des_strategies_europeennes_sur_les_ressources_spatiales_et_la_defense_planetaire",
"https://partipirate.org/program/index/droits_humains_a_l_ere_numerique___droit_a_l_autodetermination",
"https://partipirate.org/program/index/droits_humains_a_l_ere_numerique___droit_a_la_vie_privee",
"https://partipirate.org/program/index/economie_finance_et_fiscalite___economie_numerique",
"https://partipirate.org/program/index/urbanisme_et_transports___en_route_contre_big_brother",
"https://partipirate.org/program/index/environnement_climat_et_energie___energie",
"https://partipirate.org/program/index/droits_humains_a_l_ere_numerique___evaluation_et_moratoire_systematique_des_pouvoirs_de_surveillance_existants_moratoire",
"https://partipirate.org/program/index/affaires_internationales___forces_armees",
"https://partipirate.org/program/index/societe_civile___gouvernement_ouvert",
"https://partipirate.org/program/index/urbanisme_et_transports___harmonisation_de_la_legislation_concernant_les_vehicules",
"https://partipirate.org/program/index/affaires_internationales___intelligence_artificielle",
"https://partipirate.org/program/index/urbanisme_et_transports___introduction",
"https://partipirate.org/program/index/education_culture_recherche_et_connaissance_libre___introduction",
"https://partipirate.org/program/index/affaires_sociales_et_sante___introduction",
"https://partipirate.org/program/index/economie_finance_et_fiscalite___la_faille_du_contrat_sociale",
"https://partipirate.org/program/index/affaires_internationales___la_responsabilite_des_entreprises_internationales",
"https://partipirate.org/program/index/spatial___la_vision_spatiale_de_l_union_europeenne_pour_l_avenir",
"https://partipirate.org/program/index/urbanisme_et_transports___legalisation_des_vtc",
"https://partipirate.org/program/index/affaires_sociales_et_sante___legislation_sur_les_drogues",
"https://partipirate.org/program/index/brevets___les_brevets_dans_une_societe_de_l_information",
"https://partipirate.org/program/index/brevets___les_brevets_a_l_ere_de_l_information",
"https://partipirate.org/program/index/urbanisme_et_transports___les_deplacements_locaux_transfrontaliers",
"https://partipirate.org/program/index/urbanisme_et_transports___les_routes_ne_connaissent_pas_de_frontieres",
"https://partipirate.org/program/index/affaires_sociales_et_sante___libre_circulation_des_travailleurs",
"https://partipirate.org/program/index/droits_humains_a_l_ere_numerique___logiciels_libres",
"https://partipirate.org/program/index/droits_humains_a_l_ere_numerique___logiciels_formats_et_protocoles_libres_dans_l_administration_publique",
"https://partipirate.org/program/index/societe_civile___lutte_contre_la_corruption_et_limitation_du_lobbying_d_entreprise",
"https://partipirate.org/program/index/affaires_internationales___marquage_infalsifiable_des_armes_militaires",
"https://partipirate.org/program/index/societe_civile___mettre_fin_au_copinage_politique",
"https://partipirate.org/program/index/affaires_internationales___migration",
"https://partipirate.org/program/index/droits_humains_a_l_ere_numerique___neutralite_du_net",
"https://partipirate.org/program/index/agriculture_peche_et_cultures_marines___occupation_des_terres",
"https://partipirate.org/program/index/droits_humains_a_l_ere_numerique___open_data",
"https://partipirate.org/program/index/societe_civile___participation_politique_innovante",
"https://partipirate.org/program/index/affaires_internationales___politique_commerciale_internationale",
"https://partipirate.org/program/index/droits_humains_a_l_ere_numerique___politique_du_net",
"https://partipirate.org/program/index/affaires_internationales___politique_d_aide_au_developpement_et_politique_humanitaire",
"https://partipirate.org/program/index/spatial___politique_industrielle_du_secteur_spatial",
"https://partipirate.org/program/index/education_culture_recherche_et_connaissance_libre___science",
"https://partipirate.org/program/index/societe_civile___prevenir_les_conflits_d_interets",
"https://partipirate.org/program/index/affaires_internationales___principes_pour_les_accords_commerciaux",
"https://partipirate.org/program/index/spatial___profiter_des_avantages_du_programme_spatial",
"https://partipirate.org/program/index/education_culture_recherche_et_connaissance_libre___promotion_des_communs_et_de_la_culture_libre",
"https://partipirate.org/program/index/societe_civile___protection_des_lanceurs_d_alerte",
"https://partipirate.org/program/index/affaires_internationales___protection_internationale_des_droits_fondamentaux",
"https://partipirate.org/program/index/droits_humains_a_l_ere_numerique___proteger_la_liberte_d_expression_en_ligne",
"https://partipirate.org/program/index/societe_civile___re-democratisation_du_processus_legislatif",
"https://partipirate.org/program/index/droits_humains_a_l_ere_numerique___recherche_dans_le_domaine_de_la_securite",
"https://partipirate.org/program/index/brevets___reequilibrer_les_brevets_avec_le_bien_commun",
"https://partipirate.org/program/index/education_culture_recherche_et_connaissance_libre___reforme_du_droit_d_auteur",
"https://partipirate.org/program/index/brevets___reglementation_internationale_des_monopoles_sur_la_production_intellectuelles",
"https://partipirate.org/program/index/urbanisme_et_transports___restons_simple_et_intelligent",
"https://partipirate.org/program/index/agriculture_peche_et_cultures_marines___sauvegarder_le_principe_de_diversite_biologique",
"https://partipirate.org/program/index/societe_civile___supplement_de_democratie_pour_l_europe",
"https://partipirate.org/program/index/economie_finance_et_fiscalite___taxes",
"https://partipirate.org/program/index/societe_civile___transparence_du_secteur_public",
"https://partipirate.org/program/index/societe_civile___transparence_et_limitation_des_influences_externes_sur_les_decisions_politiques",
"https://partipirate.org/program/index/societe_civile___transparence_et_protection_des_lanceurs_d_alerte",
"https://partipirate.org/program/index/agriculture_peche_et_cultures_marines___une_europe_durable",
"https://partipirate.org/program/index/agriculture_peche_et_cultures_marines___utilisation_de_technologies_et_solutions_numeriques",
"https://partipirate.org/program/index/affaires_internationales___utilisation_des_armes",
"https://partipirate.org/program/index/droits_humains_a_l_ere_numerique___vie_privee_et_surveillance_de_masse",
"https://partipirate.org/program/index/spatial___vitaliser_le_developpement_des_technologies_spatiales",
"https://partipirate.org/program/index/urbanisme_et_transports___vive_la_paresse_energetique",
"https://partipirate.org/program/index/affaires_sociales_et_sante___application_de_la_loi_handicap",
"https://partipirate.org/program/index/environnement_climat_et_energie___environnement",
"https://partipirate.org/program/index/societe_civile___financement_des_campagnes_electorales",
"https://partipirate.org/program/index/economie_finance_et_fiscalite___fonds_structurels",
"https://partipirate.org/program/index/societe_civile___acquis_sociaux",
"https://partipirate.org/program/index/affaires_internationales___affaires_etrangeres",
"https://partipirate.org/program/index/institutions___bulletin_unique",
"https://partipirate.org/program/index/environnement_climat_et_energie___climat",
"https://partipirate.org/program/index/institutions___controle_de_action_municipale",
"https://partipirate.org/program/index/economie_finance_et_fiscalite___course_vers_le_bas",
"https://partipirate.org/program/index/affaires_sociales_et_sante___creation_de_mairie_mobile",
"https://partipirate.org/program/index/institutions___democratie_delegative_a_l_assemblee_nationale",
"https://partipirate.org/program/index/institutions___deontologie_des_elus",
"https://partipirate.org/program/index/institutions___disponibilite_des_elus",
"https://partipirate.org/program/index/institutions___vote_etrangers",
"https://partipirate.org/program/index/societe_civile___esport",
"https://partipirate.org/program/index/institutions___financement_candidats",
"https://partipirate.org/program/index/institutions___financement_parlementaires",
"https://partipirate.org/program/index/institutions___cheque_politique",
"https://partipirate.org/program/index/institutions___financement_par_elu",
"https://partipirate.org/program/index/institutions___interdiction_prets_partis",
"https://partipirate.org/program/index/institutions___limite_cotisations_dons",
"https://partipirate.org/program/index/affaires_internationales___forces_armees",
"https://partipirate.org/program/index/institutions___fusion_senat_cese",
"https://partipirate.org/program/index/societe_civile___gouvernement_ouvert",
"https://partipirate.org/program/index/institutions___indemnisation_victimes",
"https://partipirate.org/program/index/institutions___independance_justice_1_budget",
"https://partipirate.org/program/index/institutions___independance_justice_2_transparence",
"https://partipirate.org/program/index/institutions___independance_justice_3_suppression_CJR",
"https://partipirate.org/program/index/affaires_sociales_et_sante___introduction",
"https://partipirate.org/program/index/education_culture_recherche_et_connaissance_libre___introduction",
"https://partipirate.org/program/index/education_culture_recherche_et_connaissance_libre___jugement_majoritaire_dans_les_etablissements_d_enseignement_publics",
"https://partipirate.org/program/index/economie_finance_et_fiscalite___la_faille_du_contrat_sociale",
"https://partipirate.org/program/index/spatial___la_vision_spatiale_de_l_union_europeenne_pour_l_avenir",
"https://partipirate.org/program/index/institutions___lutte_contre_la_corruption",
"https://partipirate.org/program/index/societe_civile___lutte_contre_la_corruption_et_limitation_du_lobbying_d_entreprise",
"https://partipirate.org/program/index/societe_civile___discrimination_handicap",
"https://partipirate.org/program/index/institutions___lutte_contre_les_conflits_interet",
"https://partipirate.org/program/index/societe_civile___mettre_fin_au_copinage_politique",
"https://partipirate.org/program/index/institutions___modification_de_la_presentation_des_amendements",
"https://partipirate.org/program/index/institutions___modification_article_49_constitution",
"https://partipirate.org/program/index/institutions___montant_des_indemnites",
"https://partipirate.org/program/index/institutions___calendrier_electoral_president_JM",
"https://partipirate.org/program/index/institutions___organisation_judiciaire",
"https://partipirate.org/program/index/institutions___participation_des_citoyens_aux_decisions_locales",
"https://partipirate.org/program/index/societe_civile___participation_politique_innovante",
"https://partipirate.org/program/index/affaires_internationales___politique_d_aide_au_developpement_et_politique_humanitaire",
"https://partipirate.org/program/index/institutions___modalites_election_AN",
"https://partipirate.org/program/index/institutions___vote_electronique",
"https://partipirate.org/program/index/institutions___independance_justice_0_intro",
"https://partipirate.org/program/index/education_culture_recherche_et_connaissance_libre___science",
"https://partipirate.org/program/index/institutions___vote_blanc",
"https://partipirate.org/program/index/institutions___fonctionnement_conseils_municipaux",
"https://partipirate.org/program/index/institutions___cumul_mandats_conflit_interets",
"https://partipirate.org/program/index/societe_civile___prevenir_les_conflits_d_interets",
"https://partipirate.org/program/index/institutions___lanceurs_alerte",
"https://partipirate.org/program/index/societe_civile___protection_des_lanceurs_d_alerte",
"https://partipirate.org/program/index/affaires_internationales___protection_internationale_des_droits_fondamentaux",
"https://partipirate.org/program/index/societe_civile___re-democratisation_du_processus_legislatif",
"https://partipirate.org/program/index/institutions___reconnaissance_des_elus_minoritaires",
"https://partipirate.org/program/index/institutions___referendum_initiative_populaire",
"https://partipirate.org/program/index/institutions___reforme_carcerale",
"https://partipirate.org/program/index/institutions___reforme_procedure_penale",
"https://partipirate.org/program/index/societe_civile___financement_presse_ecrite",
"https://partipirate.org/program/index/societe_civile___supplement_de_democratie_pour_l_europe",
"https://partipirate.org/program/index/institutions___suppression_departement",
"https://partipirate.org/program/index/economie_finance_et_fiscalite___taxes",
"https://partipirate.org/program/index/institutions___transparence_de_action_publique",
"https://partipirate.org/program/index/societe_civile___transparence_du_secteur_public",
"https://partipirate.org/program/index/societe_civile___transparence_et_limitation_des_influences_externes_sur_les_decisions_politiques",
"https://partipirate.org/program/index/societe_civile___transparence_et_protection_des_lanceurs_d_alerte",
"https://partipirate.org/program/index/societe_civile___acquis_sociaux",
"https://partipirate.org/program/index/environnement_climat_et_energie___animal_et_societe",
"https://partipirate.org/program/index/droits_humains_a_l_ere_numerique___droits_des_mineurs",
"https://partipirate.org/program/index/droits_humains_a_l_ere_numerique___droits_du_travailleur_du_sexe",
"https://partipirate.org/program/index/societe_civile___esport",
"https://partipirate.org/program/index/droits_humains_a_l_ere_numerique___garantir_respect_droits_femmes_lgbt",
"https://partipirate.org/program/index/institutions___indemnisation_victimes",
"https://partipirate.org/program/index/institutions___independance_justice_1_budget",
"https://partipirate.org/program/index/institutions___independance_justice_2_transparence",
"https://partipirate.org/program/index/institutions___independance_justice_3_suppression_CJR",
"https://partipirate.org/program/index/affaires_internationales___la_responsabilite_des_entreprises_internationales",
"https://partipirate.org/program/index/societe_civile___discrimination_handicap_premiere_embauche",
"https://partipirate.org/program/index/societe_civile___discrimination_handicap",
"https://partipirate.org/program/index/institutions___organisation_judiciaire",
"https://partipirate.org/program/index/institutions___independance_justice_0_intro",
"https://partipirate.org/program/index/institutions___lanceurs_alerte",
"https://partipirate.org/program/index/institutions___reforme_carcerale",
"https://partipirate.org/program/index/institutions___reforme_procedure_penale",
"https://partipirate.org/program/index/droits_humains_a_l_ere_numerique___respect_des_droits_humains",
"https://partipirate.org/program/index/urbanisme_et_transports___developpement_ofs",
"https://partipirate.org/program/index/environnement_climat_et_energie___economie_energie_logement",
"https://partipirate.org/program/index/environnement_climat_et_energie___pour_une_transition_energetique_decarbonee",
"https://partipirate.org/program/index/environnement_climat_et_energie___environnement",
"https://partipirate.org/program/index/education_culture_recherche_et_connaissance_libre___libre_circulation_des_connaissances_et_education",
"https://partipirate.org/program/index/affaires_sociales_et_sante___application_de_la_loi_handicap",
"https://partipirate.org/program/index/brevets___brevets_medecine_et_sante",
"https://partipirate.org/program/index/environnement_climat_et_energie___divertissements_et_spectacles",
"https://partipirate.org/program/index/environnement_climat_et_energie___experimentation_animale",
"https://partipirate.org/program/index/education_culture_recherche_et_connaissance_libre___introduction",
"https://partipirate.org/program/index/education_culture_recherche_et_connaissance_libre___savoir_commun",
"https://partipirate.org/program/index/education_culture_recherche_et_connaissance_libre___science",
"https://partipirate.org/program/index/environnement_climat_et_energie___pour_une_transition_energetique_decarbonee",
"https://partipirate.org/program/index/education_culture_recherche_et_connaissance_libre___promotion_des_communs_et_de_la_culture_libre",
"https://partipirate.org/program/index/brevets___reglementation_internationale_des_monopoles_sur_la_production_intellectuelles",
"https://partipirate.org/program/index/affaires_internationales___resolution_des_conflits",
"https://partipirate.org/program/index/affaires_internationales___affaires_etrangeres",
"https://partipirate.org/program/index/affaires_internationales___asile",
"https://partipirate.org/program/index/affaires_internationales___cyber_defense",
"https://partipirate.org/program/index/affaires_internationales___don_de_droit_ecosysteme_terre",
"https://partipirate.org/program/index/affaires_internationales___droit_asile_lanceurs_alerte",
"https://partipirate.org/program/index/affaires_internationales___forces_armees",
"https://partipirate.org/program/index/affaires_internationales___intelligence_artificielle",
"https://partipirate.org/program/index/affaires_internationales___agence_developpement",
"https://partipirate.org/program/index/affaires_internationales___la_responsabilite_des_entreprises_internationales",
"https://partipirate.org/program/index/urbanisme_et_transports___les_routes_ne_connaissent_pas_de_frontieres",
"https://partipirate.org/program/index/affaires_internationales___marquage_infalsifiable_des_armes_militaires",
"https://partipirate.org/program/index/affaires_internationales___migration",
"https://partipirate.org/program/index/affaires_internationales___politique_commerciale_internationale",
"https://partipirate.org/program/index/affaires_internationales___politique_d_aide_au_developpement_et_politique_humanitaire",
"https://partipirate.org/program/index/droits_humains_a_l_ere_numerique___code_travail_salaire_minimum_universel",
"https://partipirate.org/program/index/affaires_internationales___principes_pour_les_accords_commerciaux",
"https://partipirate.org/program/index/affaires_internationales___protection_internationale_des_droits_fondamentaux",
"https://partipirate.org/program/index/affaires_internationales___rejoindre_le_traite_sur_l_interdiction_des_armes_nucleaires",
"https://partipirate.org/program/index/droits_humains_a_l_ere_numerique___respect_des_droits_humains",
"https://partipirate.org/program/index/affaires_internationales___responsabilite_internationale_entreprise",
"https://partipirate.org/program/index/affaires_internationales___utilisation_des_armes",
"https://partipirate.org/program/index/affaires_sociales_et_sante___acces_a_la_sante_et_confort_du_patient",
"https://partipirate.org/program/index/societe_civile___acquis_sociaux",
"https://partipirate.org/program/index/affaires_sociales_et_sante___approvisionnement_durable_pour_la_restauration_collective",
"https://partipirate.org/program/index/brevets___brevets_medecine_et_sante",
"https://partipirate.org/program/index/affaires_sociales_et_sante___droit_a_mourir_dans_la_dignite",
"https://partipirate.org/program/index/affaires_sociales_et_sante___introduction",
"https://partipirate.org/program/index/droits_humains_a_l_ere_numerique___la_grande_secu_pour_une_reforme_de_la_prise_en_charge_des_frais_de_sante_par_l_assurance_maladie",
"https://partipirate.org/program/index/affaires_sociales_et_sante___legislation_sur_les_drogues",
"https://partipirate.org/program/index/affaires_sociales_et_sante___libre_circulation_des_travailleurs",
"https://partipirate.org/program/index/affaires_sociales_et_sante___mesures_d_urgence_pour_la_sante_et_les_hopitaux",
"https://partipirate.org/program/index/societe_civile___pour_une_legalisation_de_la_consommation_de_la_production_et_de_la_vente_de_cannabis_et_la_creation_d_un_marche_encadre_du_cannabis_et_de_ses_derives",
"https://partipirate.org/program/index/education_culture_recherche_et_connaissance_libre___premiers_secours_civils",
"https://partipirate.org/program/index/affaires_sociales_et_sante___redonner_du_temps_medical_aux_medecins",
"https://partipirate.org/program/index/affaires_sociales_et_sante___un_don_du_sang_sans_discrimination_de_genre_ou_de_sexualite_des_donneurs",
"https://partipirate.org/program/index/affaires_sociales_et_sante___un_remboursement_des_protections_hygieniques",
"https://partipirate.org/program/index/affaires_sociales_et_sante___une_meilleur_prise_en_compte_des_personnes_intersexes",
"https://partipirate.org/program/index/environnement_climat_et_energie___environnement",
"https://partipirate.org/program/index/societe_civile___financement_des_campagnes_electorales",
"https://partipirate.org/program/index/economie_finance_et_fiscalite___fonds_structurels",
"https://partipirate.org/program/index/education_culture_recherche_et_connaissance_libre___libre_circulation_des_connaissances_et_education",
"https://partipirate.org/program/index/environnement_climat_et_energie___abolition_chasse_a_courre",
"https://partipirate.org/program/index/affaires_sociales_et_sante___acces_a_la_sante_et_confort_du_patient",
"https://partipirate.org/program/index/societe_civile___acquis_sociaux",
"https://partipirate.org/program/index/societe_civile___actionnariat_populaire_dans_le_sport_francais",
"https://partipirate.org/program/index/education_culture_recherche_et_connaissance_libre___diversite_educative",
"https://partipirate.org/program/index/environnement_climat_et_energie___animal_et_societe",
"https://partipirate.org/program/index/environnement_climat_et_energie___animaux_de_compagnie",
"https://partipirate.org/program/index/affaires_sociales_et_sante___application_de_la_loi_handicap",
"https://partipirate.org/program/index/affaires_sociales_et_sante___approvisionnement_durable_pour_la_restauration_collective",
"https://partipirate.org/program/index/environnement_climat_et_energie___climat",
"https://partipirate.org/program/index/economie_finance_et_fiscalite___course_vers_le_bas",
"https://partipirate.org/program/index/brevets___delai_domaine_public",
"https://partipirate.org/program/index/institutions___democratie_delegative_a_l_assemblee_nationale",
"https://partipirate.org/program/index/societe_civile___developpement_des_outiltheques",
"https://partipirate.org/program/index/environnement_climat_et_energie___divertissements_et_spectacles",
"https://partipirate.org/program/index/affaires_sociales_et_sante___droit_a_mourir_dans_la_dignite",
"https://partipirate.org/program/index/droits_humains_a_l_ere_numerique___droits_des_mineurs",
"https://partipirate.org/program/index/droits_humains_a_l_ere_numerique___droits_du_travailleur_du_sexe",
"https://partipirate.org/program/index/environnement_climat_et_energie___economie_energie_consommation",
"https://partipirate.org/program/index/education_culture_recherche_et_connaissance_libre___education_sexuelle",
"https://partipirate.org/program/index/societe_civile___esport",
"https://partipirate.org/program/index/education_culture_recherche_et_connaissance_libre___esport_et_jeux_video",
"https://partipirate.org/program/index/environnement_climat_et_energie___faune_sauvage",
"https://partipirate.org/program/index/droits_humains_a_l_ere_numerique___garantir_respect_droits_femmes_lgbt",
"https://partipirate.org/program/index/societe_civile___gouvernement_ouvert",
"https://partipirate.org/program/index/institutions___independance_justice_1_budget",
"https://partipirate.org/program/index/institutions___independance_justice_2_transparence",
"https://partipirate.org/program/index/institutions___independance_justice_3_suppression_CJR",
"https://partipirate.org/program/index/environnement_climat_et_energie___interdiction_chasse_dimanche",
"https://partipirate.org/program/index/droits_humains_a_l_ere_numerique___interdiction_de_la_reconnaissance_faciale_dans_espace_public",
"https://partipirate.org/program/index/environnement_climat_et_energie___interdiction_ecran_publicitaires_video",
"https://partipirate.org/program/index/affaires_sociales_et_sante___interdire_les_therapies_de_conversion",
"https://partipirate.org/program/index/education_culture_recherche_et_connaissance_libre___introduction",
"https://partipirate.org/program/index/affaires_sociales_et_sante___introduction",
"https://partipirate.org/program/index/economie_finance_et_fiscalite___la_faille_du_contrat_sociale",
"https://partipirate.org/program/index/affaires_sociales_et_sante___le_1er_mai_devient_la_journee_internationale_des_travailleurs_et_des_travailleuses",
"https://partipirate.org/program/index/societe_civile___le_1er_mai_devient_journee_internationale",
"https://partipirate.org/program/index/brevets___les_brevets_dans_une_societe_de_l_information",
"https://partipirate.org/program/index/affaires_sociales_et_sante___libre_circulation_des_travailleurs",
"https://partipirate.org/program/index/societe_civile___lutte_contre_la_corruption_et_limitation_du_lobbying_d_entreprise",
"https://partipirate.org/program/index/societe_civile___discrimination_handicap_premiere_embauche",
"https://partipirate.org/program/index/societe_civile___discrimination_handicap",
"https://partipirate.org/program/index/affaires_sociales_et_sante___allocation_aux_adultes_handicapes_une_aide_individuelle",
"https://partipirate.org/program/index/affaires_sociales_et_sante___mesures_d_urgence_pour_la_sante_et_les_hopitaux",
"https://partipirate.org/program/index/societe_civile___mettre_fin_au_copinage_politique",
"https://partipirate.org/program/index/agriculture_peche_et_cultures_marines___mettre_fin_elevage_fourrure",
"https://partipirate.org/program/index/education_culture_recherche_et_connaissance_libre___moratoire_sur_acces_numerique_catalogues_culturels_municipaux",
"https://partipirate.org/program/index/droits_humains_a_l_ere_numerique___moratoire_sur_la_video_surveillance",
"https://partipirate.org/program/index/societe_civile___pacte_logiciel_libre",
"https://partipirate.org/program/index/societe_civile___participation_politique_innovante",
"https://partipirate.org/program/index/societe_civile___police_municipale_respect_des_espaces_de_circulation",
"https://partipirate.org/program/index/affaires_sociales_et_sante___politique_de_lutte_contre_les_discriminations",
"https://partipirate.org/program/index/institutions___independance_justice_0_intro",
"https://partipirate.org/program/index/societe_civile___pour_une_legalisation_de_la_consommation_de_la_production_et_de_la_vente_de_cannabis_et_la_creation_d_un_marche_encadre_du_cannabis_et_de_ses_derives",
"https://partipirate.org/program/index/environnement_climat_et_energie___pour_une_transition_energetique_decarbonee",
"https://partipirate.org/program/index/environnement_climat_et_energie___voitures_individuelles",
"https://partipirate.org/program/index/societe_civile___prevenir_les_conflits_d_interets",
"https://partipirate.org/program/index/education_culture_recherche_et_connaissance_libre___promotion_des_communs_et_de_la_culture_libre",
"https://partipirate.org/program/index/societe_civile___protection_des_lanceurs_d_alerte",
"https://partipirate.org/program/index/societe_civile___re-democratisation_du_processus_legislatif",
"https://partipirate.org/program/index/education_culture_recherche_et_connaissance_libre___reforme_du_droit_d_auteur",
"https://partipirate.org/program/index/societe_civile___financement_presse_ecrite",
"https://partipirate.org/program/index/economie_finance_et_fiscalite___revenu_de_base_argumentaire",
"https://partipirate.org/program/index/economie_finance_et_fiscalite___revenu_de_base_-_interaction_avec_les_autres_mecanismes_sociaux",
"https://partipirate.org/program/index/economie_finance_et_fiscalite___revenu_de_base_-_montant_financement_et_versement",
"https://partipirate.org/program/index/societe_civile___supplement_de_democratie_pour_l_europe",
"https://partipirate.org/program/index/societe_civile___suppression_de_la_mention_du_sexe_dans_les_documents_d_etat_civil",
"https://partipirate.org/program/index/economie_finance_et_fiscalite___taxes",
"https://partipirate.org/program/index/societe_civile___transparence_du_secteur_public",
"https://partipirate.org/program/index/societe_civile___transparence_et_limitation_des_influences_externes_sur_les_decisions_politiques",
"https://partipirate.org/program/index/societe_civile___transparence_et_protection_des_lanceurs_d_alerte",
"https://partipirate.org/program/index/affaires_sociales_et_sante___un_don_du_sang_sans_discrimination_de_genre_ou_de_sexualite_des_donneurs",
"https://partipirate.org/program/index/affaires_sociales_et_sante___un_remboursement_des_protections_hygieniques",
"https://partipirate.org/program/index/affaires_sociales_et_sante___une_meilleur_prise_en_compte_des_personnes_intersexes",
"https://partipirate.org/program/index/droits_humains_a_l_ere_numerique___securite_a_l_ere_du_numerique",
"https://partipirate.org/program/index/agriculture_peche_et_cultures_marines___agriculture_et_numerique",
"https://partipirate.org/program/index/droits_humains_a_l_ere_numerique___ameliorer_les_infrastructures_du_net",
"https://partipirate.org/program/index/droits_humains_a_l_ere_numerique___debloquer_le_net_pour_un_droit_a_l_interoperabilite",
"https://partipirate.org/program/index/institutions___democratie_delegative_a_l_assemblee_nationale",
"https://partipirate.org/program/index/economie_finance_et_fiscalite___economie_numerique",
"https://partipirate.org/program/index/education_culture_recherche_et_connaissance_libre___informatique_ecole",
"https://partipirate.org/program/index/societe_civile___esport",
"https://partipirate.org/program/index/brevets___les_brevets_dans_une_societe_de_l_information",
"https://partipirate.org/program/index/education_culture_recherche_et_connaissance_libre___modernisation_outils_pedagogiques",
"https://partipirate.org/program/index/droits_humains_a_l_ere_numerique___neutralite_du_net",
"https://partipirate.org/program/index/societe_civile___pacte_logiciel_libre",
"https://partipirate.org/program/index/droits_humains_a_l_ere_numerique___politique_du_net",
"https://partipirate.org/program/index/affaires_internationales___principes_pour_les_accords_commerciaux",
"https://partipirate.org/program/index/droits_humains_a_l_ere_numerique___proteger_la_liberte_d_expression_en_ligne",
"https://partipirate.org/program/index/droits_humains_a_l_ere_numerique___vie_privee_et_surveillance_de_masse",
"https://partipirate.org/program/index/urbanisme_et_transports___en_route_contre_big_brother",
"https://partipirate.org/program/index/urbanisme_et_transports___gratuite_des_transports_en_commun",
"https://partipirate.org/program/index/urbanisme_et_transports___harmonisation_de_la_legislation_concernant_les_vehicules",
"https://partipirate.org/program/index/urbanisme_et_transports___introduction",
"https://partipirate.org/program/index/urbanisme_et_transports___legalisation_des_vtc",
"https://partipirate.org/program/index/urbanisme_et_transports___les_deplacements_locaux_transfrontaliers",
"https://partipirate.org/program/index/urbanisme_et_transports___les_routes_ne_connaissent_pas_de_frontieres",
"https://partipirate.org/program/index/environnement_climat_et_energie___pour_une_transition_energetique_decarbonee",
"https://partipirate.org/program/index/environnement_climat_et_energie___voitures_individuelles",
"https://partipirate.org/program/index/environnement_climat_et_energie___reduction_des_emissions_de_co2_des_vehicules_pour_particulier",
"https://partipirate.org/program/index/environnement_climat_et_energie___aides_publiques_societe_ecologique",
"https://partipirate.org/program/index/urbanisme_et_transports___restons_simple_et_intelligent",
"https://partipirate.org/program/index/urbanisme_et_transports___vegetalisation_des_abris_bus",
"https://partipirate.org/program/index/urbanisme_et_transports___vive_la_paresse_energetique",
"https://partipirate.org/program/index/societe_civile___acquis_sociaux",
"https://partipirate.org/program/index/agriculture_peche_et_cultures_marines___agriculture_et_numerique",
"https://partipirate.org/program/index/droits_humains_a_l_ere_numerique___droits_du_travailleur_du_sexe",
"https://partipirate.org/program/index/societe_civile___esport",
"https://partipirate.org/program/index/affaires_sociales_et_sante___introduction",
"https://partipirate.org/program/index/affaires_sociales_et_sante___le_1er_mai_devient_la_journee_internationale_des_travailleurs_et_des_travailleuses",
"https://partipirate.org/program/index/societe_civile___le_1er_mai_devient_journee_internationale",
"https://partipirate.org/program/index/affaires_sociales_et_sante___libre_circulation_des_travailleurs",
"https://partipirate.org/program/index/societe_civile___discrimination_handicap_premiere_embauche",
"https://partipirate.org/program/index/economie_finance_et_fiscalite___participation_au_dispositif_territoire_zero_chomeurs_de_longue_duree",
"https://partipirate.org/program/index/droits_humains_a_l_ere_numerique___code_travail_salaire_minimum_universel",
"https://partipirate.org/program/index/institutions___lanceurs_alerte",
"https://partipirate.org/program/index/education_culture_recherche_et_connaissance_libre___revalorisation_enseignant",
"https://partipirate.org/program/index/economie_finance_et_fiscalite___soutien_a_economie_sociale_et_solidaire",
"https://partipirate.org/program/index/urbanisme_et_transports___gratuite_des_transports_en_commun",
"https://partipirate.org/program/index/urbanisme_et_transports___instaurer_un_cadastre_des_loyers_habitation_et_encadrer_les_evolutions",
"https://partipirate.org/program/index/environnement_climat_et_energie___interdiction_ecran_publicitaires_video",
"https://partipirate.org/program/index/agriculture_peche_et_cultures_marines___plan_developpement_agriculture_urbaine",
"https://partipirate.org/program/index/environnement_climat_et_energie___voitures_individuelles",
"https://partipirate.org/program/index/urbanisme_et_transports___vegetalisation_des_abris_bus",
"https://partipirate.org/program/index/economie_finance_et_fiscalite___fonds_structurels",
"https://partipirate.org/program/index/societe_civile___actionnariat_populaire_dans_le_sport_francais",
"https://partipirate.org/program/index/economie_finance_et_fiscalite___annulation_et_interdiction_des_emprunts_et_produits_toxiques",
"https://partipirate.org/program/index/environnement_climat_et_energie___climat",
"https://partipirate.org/program/index/economie_finance_et_fiscalite___course_vers_le_bas",
"https://partipirate.org/program/index/environnement_climat_et_energie___economie_energie_logement",
"https://partipirate.org/program/index/economie_finance_et_fiscalite___economie_numerique",
"https://partipirate.org/program/index/education_culture_recherche_et_connaissance_libre___education_economie",
"https://partipirate.org/program/index/societe_civile___esport",
"https://partipirate.org/program/index/institutions___cheque_politique",
"https://partipirate.org/program/index/environnement_climat_et_energie___interdiction_generale_de_l_utilisation_des_technologies_a_base_de_cyanure_dans_l_industrie_miniere",
"https://partipirate.org/program/index/economie_finance_et_fiscalite___la_faille_du_contrat_sociale",
"https://partipirate.org/program/index/affaires_internationales___la_responsabilite_des_entreprises_internationales",
"https://partipirate.org/program/index/affaires_sociales_et_sante___libre_circulation_des_travailleurs",
"https://partipirate.org/program/index/affaires_sociales_et_sante___allocation_aux_adultes_handicapes_une_aide_individuelle",
"https://partipirate.org/program/index/affaires_sociales_et_sante___mesures_d_urgence_pour_la_sante_et_les_hopitaux",
"https://partipirate.org/program/index/education_culture_recherche_et_connaissance_libre___moratoire_sur_acces_numerique_catalogues_culturels_municipaux",
"https://partipirate.org/program/index/economie_finance_et_fiscalite___participation_au_dispositif_territoire_zero_chomeurs_de_longue_duree",
"https://partipirate.org/program/index/affaires_internationales___politique_commerciale_internationale",
"https://partipirate.org/program/index/spatial___politique_industrielle_du_secteur_spatial",
"https://partipirate.org/program/index/agriculture_peche_et_cultures_marines___droit_commercialisation_semences_paysannes",
"https://partipirate.org/program/index/droits_humains_a_l_ere_numerique___code_travail_salaire_minimum_universel",
"https://partipirate.org/program/index/societe_civile___pour_une_legalisation_de_la_consommation_de_la_production_et_de_la_vente_de_cannabis_et_la_creation_d_un_marche_encadre_du_cannabis_et_de_ses_derives",
"https://partipirate.org/program/index/environnement_climat_et_energie___pour_une_transition_energetique_decarbonee",
"https://partipirate.org/program/index/environnement_climat_et_energie___voitures_individuelles",
"https://partipirate.org/program/index/affaires_internationales___principes_pour_les_accords_commerciaux",
"https://partipirate.org/program/index/education_culture_recherche_et_connaissance_libre___promotion_des_communs_et_de_la_culture_libre",
"https://partipirate.org/program/index/brevets___reequilibrer_les_brevets_avec_le_bien_commun",
"https://partipirate.org/program/index/economie_finance_et_fiscalite___reforme_bale3",
"https://partipirate.org/program/index/economie_finance_et_fiscalite___reforme_tva",
"https://partipirate.org/program/index/economie_finance_et_fiscalite___restructuration_du_secteur_bancaire_-_nouvelle_loi_glass_-_steagall",
"https://partipirate.org/program/index/education_culture_recherche_et_connaissance_libre___revalorisation_enseignant",
"https://partipirate.org/program/index/economie_finance_et_fiscalite___revenu_de_base_argumentaire",
"https://partipirate.org/program/index/economie_finance_et_fiscalite___revenu_de_base_-_interaction_avec_les_autres_mecanismes_sociaux",
"https://partipirate.org/program/index/economie_finance_et_fiscalite___revenu_de_base_-_montant_financement_et_versement",
"https://partipirate.org/program/index/economie_finance_et_fiscalite___soutien_a_economie_sociale_et_solidaire",
"https://partipirate.org/program/index/economie_finance_et_fiscalite___taxe_sur_les_transactions_financieres",
"https://partipirate.org/program/index/education_culture_recherche_et_connaissance_libre___libre_circulation_des_connaissances_et_education",
"https://partipirate.org/program/index/education_culture_recherche_et_connaissance_libre___diversite_educative",
"https://partipirate.org/program/index/environnement_climat_et_energie___animal_et_societe",
"https://partipirate.org/program/index/environnement_climat_et_energie___divertissements_et_spectacles",
"https://partipirate.org/program/index/education_culture_recherche_et_connaissance_libre___education_sexuelle",
"https://partipirate.org/program/index/education_culture_recherche_et_connaissance_libre___agroecologie_lycee",
"https://partipirate.org/program/index/education_culture_recherche_et_connaissance_libre___education_economie",
"https://partipirate.org/program/index/education_culture_recherche_et_connaissance_libre___informatique_ecole",
"https://partipirate.org/program/index/education_culture_recherche_et_connaissance_libre___introduction",
"https://partipirate.org/program/index/education_culture_recherche_et_connaissance_libre___jugement_majoritaire_dans_les_etablissements_d_enseignement_publics",
"https://partipirate.org/program/index/education_culture_recherche_et_connaissance_libre___savoir_commun",
"https://partipirate.org/program/index/societe_civile___discrimination_handicap",
"https://partipirate.org/program/index/education_culture_recherche_et_connaissance_libre___education_langues",
"https://partipirate.org/program/index/education_culture_recherche_et_connaissance_libre___modernisation_outils_pedagogiques",
"https://partipirate.org/program/index/education_culture_recherche_et_connaissance_libre___ouvrir_ecole_exterieur",
"https://partipirate.org/program/index/education_culture_recherche_et_connaissance_libre___science",
"https://partipirate.org/program/index/education_culture_recherche_et_connaissance_libre___premiers_secours_civils",
"https://partipirate.org/program/index/education_culture_recherche_et_connaissance_libre___promotion_des_communs_et_de_la_culture_libre",
"https://partipirate.org/program/index/education_culture_recherche_et_connaissance_libre___autonomie_ecoles",
"https://partipirate.org/program/index/education_culture_recherche_et_connaissance_libre___revalorisation_enseignant",
"https://partipirate.org/program/index/environnement_climat_et_energie___climat",
"https://partipirate.org/program/index/environnement_climat_et_energie___energie",
"https://partipirate.org/program/index/environnement_climat_et_energie___interdiction_ecran_publicitaires_video",
"https://partipirate.org/program/index/environnement_climat_et_energie___pour_une_transition_energetique_decarbonee",
"https://partipirate.org/program/index/environnement_climat_et_energie___reduction_des_emissions_de_co2_des_vehicules_pour_particulier"
]

View File

@ -0,0 +1,6 @@
[
"https://partipirate.org/program/index/agriculture_peche_et_cultures_marines___agriculture_et_numerique",
"https://partipirate.org/program/index/environnement_climat_et_energie___animal_et_societe",
"https://partipirate.org/program/index/affaires_sociales_et_sante___approvisionnement_durable_pour_la_restauration_collective"
]

View File

@ -0,0 +1,46 @@
import random
import json
import requests
from bs4 import BeautifulSoup
from mastodon import Mastodon
# Charger les données depuis le fichier JSON
with open("all_pages.json", "r", encoding="utf-8") as f:
all_pages = json.load(f)
def truncate_words(text, max_length):
if len(text) <= max_length:
return text
else:
words = text.split(" ")
current_length = 0
truncated_text = ""
for word in words:
current_length += len(word) + 1 # +1 pour l'espace
if current_length > max_length:
break
truncated_text += word + " "
return truncated_text.strip() + ""
# Choisir un article aléatoire
page = random.choice(all_pages)
print(page['title'])
print(truncate_words(page['content'], 280))
# print(page['url'])
# Configurer Mastodon
# mastodon = Mastodon(
# access_token="your_access_token",
# api_base_url="https://your_instance.com"
# )
#
# # Publier l'article sur Mastodon
# mastodon.toot(
# f"Nouvel article sur le site du Parti Pirate : {page['title']}\n\n"
# f"{page['content'][:280]}…\n\n"
# f"Lire l'article complet : {page['url']}"
# )

Binary file not shown.

View File

@ -0,0 +1,27 @@
import json
from jinja2 import Environment, FileSystemLoader
import markdown2
def convert_markdown_to_html(text):
return markdown2.markdown(text)
def generate_html(pages):
env = Environment(loader=FileSystemLoader("templates"))
template = env.get_template("index.html")
html = template.render(pages=pages)
return html
# Charger les données depuis le fichier JSON
with open("all_pages.json", "r", encoding="utf-8") as f:
all_pages = json.load(f)
# Convertir le contenu Markdown en HTML
for page in all_pages:
page["content"] = convert_markdown_to_html(page["html_content"])
# Générer le HTML
html = generate_html(all_pages)
# Enregistrer le HTML dans un fichier
with open("index.html", "w", encoding="utf-8") as f:
f.write(html)

5
pirate_program/scrap.js Normal file
View File

@ -0,0 +1,5 @@
liste = document.querySelectorAll('#main figcaption a')
liens = []
liste.forEach(elem=>{
liens.push(elem.attributes["href"])
})

View File

@ -0,0 +1,165 @@
<!DOCTYPE html>
<html lang="fr">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Programme du Parti Pirate</title>
<style>
body {
font-family: Arial, sans-serif;
margin: 0;
padding: 0;
background-color: #f5f5f5;
display: flex;
justify-content: center;
align-items: center;
min-height: 100vh;
}
.container {
width: 45rem;
max-width: 1200px;
background-color: #fff;
padding: 8rem;
border-radius: 5px;
box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
font-size: 1.25rem;
}
h1 {
font-size: 24px;
margin-bottom: 10px;
}
.article {
margin-bottom: 40px;
}
.article h2 {
font-size: 18px;
margin-bottom: 10px;
}
.article .tags {
margin-bottom: 10px;
}
.article .tags a {
color: #333;
text-decoration: none;
}
.article .date {
font-size: 12px;
color: #999;
margin-bottom: 10px;
}
.article .content {
font-size: 16px;
line-height: 1.6;
color: #333;
}
.article .content p {
margin-bottom: 20px;
}
.article .content ul {
margin-left: 20px;
}
a {
color: darkslateblue;
}
.tags-menu {
position: fixed;
top: 20px;
left: 20px;
background-color: #fff;
padding: 10px;
border-radius: 5px;
box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}
.tags-menu ul {
list-style: none;
padding: 0;
margin: 0;
}
.tags-menu li {
display: inline-block;
margin-right: 10px;
}
.tags-menu a {
color: #333;
text-decoration: none;
padding: 5px 10px;
border-radius: 5px;
background-color: #f5f5f5;
}
.tags-menu a:hover {
background-color: #e5e5e5;
}
</style>
</head>
<body id="main">
<div class="middle w-5/6 max-w-screen-xl mt-16 ml-auto mr-auto project-container">
<div class="container">
<h1>Programme du
<a href="https://partipirate.org/index.php/">Parti Pirate</a>
</h1>
{% for page in pages %}
<div class="article">
<h2>
<a href="{{ page.url}}">
{{ page.title }}
</a>
</h2>
<div class="tags">
<strong>Tags :</strong> {{ page.tags }}
</div>
<div class="date">{{ page.date }}</div>
<div class="image"><img src="{{ page.image }}" alt="image d'article"></div>
<div class="content">{{ page.content|safe }}</div>
<hr>
</div>
{% endfor %}
</div>
</div>
<script>
document.addEventListener('DOMContentLoaded', function () {
var tagsMenu = document.querySelector('.tags-menu')
var tags = document.querySelectorAll('.tags-menu a')
var articles = document.querySelectorAll('.article')
tagsMenu.addEventListener('click', function (e) {
if (e.target && e.target.matches('a')) {
var tag = e.target.getAttribute('data-tag')
articles.forEach(function (article) {
if (article.getAttribute('data-tags').includes(tag)) {
article.style.display = 'block'
} else {
article.style.display = 'none'
}
})
}
})
// Ajouter un événement de clic sur le premier tag pour afficher tous les articles
tags[0].addEventListener('click', function () {
articles.forEach(function (article) {
article.style.display = 'block'
})
})
})
</script>
</body>
</html>