Derniers travaux

WRInaute accro
Bonjour

Je ne résiste pas à vous montrer la page valide json traduite automatiquement à partir du chargement avec curl de la page d'accueil de mon site.


JSON:
{
  "root": {
    "tag": "html",
    "lang": "fr",
    "children": [
      {
        "tag": "head",
        "children": [
          {
            "script": "<script src=\"https://cache.consentframework.com/js/pa/25085/c/SZFBN/stub\" referrerpolicy=\"unsafe-url\"></script>"
          },
          {
            "script": "<script src=\"https://choices.consentframework.com/js/pa/25085/c/SZFBN/cmp\" referrerpolicy=\"unsafe-url\" async></script>"
          },
          {
            "tag": "meta",
            "http-equiv": "Content-Type",
            "content": "text/html; charset=utf-8"
          },
          {
            "tag": "link",
            "rel": "stylesheet",
            "href": "/style_20211122.css"
          },
          {
            "tag": "meta",
            "name": "viewport",
            "content": "width=device-width, initial-scale=1.0"
          },
          {
            "tag": "link",
            "rel": "canonical",
            "href": "https://www.pronostics-courses.fr/"
          },
          {
            "tag": "title",
            "children": {
              "#text": "Statistiques et Pronostics Courses de Chevaux"
            }
          },
          {
            "tag": "meta",
            "name": "keywords",
            "content": "cheval, chevaux, pronostics, courses de chevaux, pronostic, pronostics courses, pronostics courses de chevaux, estimations prévisionnelles, base de données courses"
          },
          {
            "script": "<script>\n/**\n\t**************************************\n\t* FINALITÉS DE LA NORME IAB TCF v2.0 *\n\t**************************************\n\tFinalité 1 : Stocker et/ou accéder a des informations sur un terminal.\n\tFinalité 2 : Sélectionner des publicités standard.\n\tFinalité 3 : Créer un profil personnalisé de publicités.\n\tFinalité 4 : Sélectionner des publicités personnalisées.\n\tFinalité 5 : Créer un profil pour afficher un contenu personnalisé.\n\tFinalité 6 : Sélectionner du contenu personnalisé.\n\tFinalité 7 : Mesurer la performance des publicités.\n\tFinalité 8 : Mesurer la performance du contenu.\n\tFinalité 9 : Exploiter des études de marché afin de générer des données d’audience.\n\tFinalité 10 : Développer et améliorer les produits.\n\tFonctionnalité spéciale 1 : Utiliser des données de géolocalisation précises.\n\tFonctionnalité spéciale 2 : Analyser activement les caractéristiques du terminal pour l’identification.\n\t**/\n\t/********************************/\n\t/** \tConfiguration Sirdata\t*/\n\t/********************************/\n\t/**\n\t**\tFinalité 1 : Stocker et/ou accéder a des informations sur un terminal.\n\t**\tFinalité 2 : Sélectionner des publicités standard.\n\t**\tFinalité 3 : Créer un profil personnalisé de publicités.\n\t**\tFinalité 4 : Sélectionner des publicités personnalisées.\n\t**\tFinalité 5 : Créer un profil pour afficher un contenu personnalisé.\n\t**\tFinalité 6 : Sélectionner du contenu personnalisé.\n\t**\tFinalité 7 : Mesurer la performance des publicités.\n\t**\tFinalité 8 : Mesurer la performance du contenu.\n\t**\tFinalité 9 : Exploiter des études de marché afin de générer des données d’audience.\n\t**\tFinalité 10 : Développer et améliorer les produits.\n\t**\n\t**\tLa fonctionnalités spéciale\n\t**\t1 est filtrée.\n\t**\n\t**\tLa fonctionnalités spéciale\n\t**\t2 est exclue.\n\t**\n\t**\tSource : FAQ de Sirdata.\n\t**/\n</script>"
          },
          {
            "#comment": "<!-- Google Tag Manager -->"
          },
          {
            "script": "<script>(function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start':new Date().getTime(),event:'gtm.js'});\n\tvar f=d.getElementsByTagName(s)[0],j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';\n\tj.async=true;\n\tj.setAttribute('data-cmp-src', 'https://www.googletagmanager.com/gtm.js?id='+i+dl);\n\tj.setAttribute('data-cmp-purposes', '1,2,3,4,5,6,7,8,9,10');\n\tj.setAttribute('data-cmp-special-features', '1');\n\tj.setAttribute('data-cmp-vendor', '755')\n\tf.parentNode.insertBefore(j,f);\n})(window,document,'script','dataLayer','GTM-PWCJG49');</script>"
          },
          {
            "#comment": "<!-- End Google Tag Manager -->"
          },
          {
            "script": "<script>try{Sddan.cmp.triggerTM();}catch(e){}</script>"
          },
          {
            "script": "<script>const markerNameA=\"marker-a\";const markerNameB=\"marker-b\";function initUserTiming()\n{performance.mark(markerNameA);performance.measure(\"measure from navigation start to Debut Page\",undefined,markerNameA);}\nfunction alimUserTiming(titre)\n{performance.mark(markerNameB);performance.measure(titre,markerNameA,markerNameB);performance.mark(markerNameA);}\nfunction afficUserTiming()\n{console.log(performance.getEntriesByType(\"measure\"));performance.clearMarks();performance.clearMeasures();}</script>"
          },
          {
            "tag": "meta",
            "name": "description",
            "content": "Statistiques, Pronostics et Historiques Graphiques sur les Courses de Chevaux"
          },
          {
            "tag": "meta",
            "name": "author",
            "content": "Jean-Francois Ortolo"
          },
          {
            "#comment": "<!--[if IE]>\n\n<meta http-equiv=\"X-UA-Compatible\" content=\"IE=edge\" />\n<![endif]-->"
          }
        ]
      },
      {
        "tag": "body",
        "itemscope": "",
        "itemtype": "http://schema.org/WebPage",
        "children": [
          {
            "script": "<script>\n\tinitUserTiming();\n</script>"
          },
          {
            "tag": "meta",
            "itemprop": "description",
            "content": "Statistiques, Pronostics et Historiques Graphiques sur les Courses de Chevaux"
          },
          {
            "tag": "a",
            "class": "cache",
            "itemprop": "url",
            "href": "https://www.pronostics-courses.fr",
            "aria-label": "Statistiques et Pronostics sur les Courses de Chevaux"
          },
          {
            "tag": "a",
            "class": "cache",
            "itemprop": "breadcrumb",
            "href": "https://www.pronostics-courses.fr",
            "aria-label": "Statistiques et Pronostics sur les Courses de Chevaux"
          },
          {
            "tag": "span",
            "itemscope": "",
            "itemtype": "http://schema.org/Language",
            "children": [
              {
                "tag": "meta",
                "itemprop": "name",
                "content": "French"
              }
            ]
          },
          {
            "tag": "div",
            "itemscope": "",
            "itemtype": "http://schema.org/AboutPage",
            "children": [
              {
                "tag": "div",
                "itemprop": "author",
                "itemscope": "",
                "itemtype": "http://schema.org/Person",
                "children": [
                  {
                    "tag": "meta",
                    "itemprop": "name",
                    "content": "Jean-Francois Ortolo"
                  },
                  {
                    "tag": "meta",
                    "itemprop": "birthDate",
                    "content": "1957-12-18"
                  },
                  {
                    "tag": "meta",
                    "itemprop": "nationality",
                    "content": "French"
                  },
                  {
                    "tag": "meta",
                    "itemprop": "homeLocation",
                    "content": "Paris"
                  }
                ]
              }
            ]
          },
          {
            "tag": "meta",
            "property": "og:title",
            "content": "Statistiques, Pronostics et Historiques Graphiques sur les Courses de Chevaux"
          },
          {
            "tag": "meta",
            "property": "og:type",
            "content": "Pronostics, Pronostics et Historiques Graphiques sur les Courses de Chevaux"
          },
          {
            "tag": "meta",
            "property": "og:url",
            "content": "https://www.pronostics-courses.fr/"
          },
          {
            "tag": "p",
            "aria-hidden": "true"
          },
          {
            "tag": "header",
            "class": "nav_index",
            "children": [
              {
                "tag": "h1",
                "class": "logo",
                "children": {
                  "#text": "\nStatistiques Courses de Chevaux\n"
                }
              }
            ]
          },
          false,
          {
            "tag": "div",
            "class": "blochaut",
            "children": [
              {
                "tag": "div",
                "class": "bloc blocgauche",
                "children": [
                  {
                    "tag": "article",
                    "class": "nav_index",
                    "children": [
                      {
                        "tag": "header",
                        "class": "nav_index",
                        "children": [
                          {
                            "tag": "h2",
                            "children": {
                              "#text": "Choisissez vos courses..."
                            }
                          }
                        ]
                      },
                      false,
                      {
                        "tag": "aside",
                        "class": "nav_index",
                        "children": [
                          {
                            "tag": "ul",
                            "id": "menu",
                            "itemscope": "",
                            "itemtype": "http://schema.org/ItemList",
                            "children": [
                              {
                                "tag": "li",
                                "itemprop": "itemListElement",
                                "itemscope": "",
                                "itemtype": "http://schema.org/ListItem",
                                "children": [
                                  {
                                    "tag": "meta",
                                    "itemprop": "position",
                                    "content": "1"
                                  },
                                  {
                                    "tag": "h3",
                                    "itemprop": "item",
                                    "itemscope": "",
                                    "itemtype": "http://schema.org/SiteNavigationElement",
                                    "children": [
                                      {
                                        "tag": "a",
                                        "class": "bouton bouton_gauche",
                                        "title": "Pronostics Courses Samedi 27 Novembre 2021",
                                        "itemprop": "url",
                                        "href": "https://www.pronostics-courses.fr/php/courses_nouvelles/new_courses.php",
                                        "children": [
                                          {
                                            "tag": "span",
                                            "itemprop": "description",
                                            "children": [
                                              false
                                            ]
                                          }
                                        ]
                                      }
                                    ]
                                  }
                                ]
                              },
                              {
                                "tag": "li",
                                "itemprop": "itemListElement",
                                "itemscope": "",
                                "itemtype": "http://schema.org/ListItem",
                                "children": [
                                  {
                                    "tag": "meta",
                                    "itemprop": "position",
                                    "content": "2"
                                  },
                                  {
                                    "tag": "h3",
                                    "itemprop": "item",
                                    "itemscope": "",
                                    "itemtype": "http://schema.org/SiteNavigationElement",
                                    "children": [
                                      {
                                        "tag": "a",
                                        "class": "bouton bouton_gauche",
                                        "title": "Pronostics Courses Vendredi 26 Novembre 2021",
                                        "itemprop": "url",
                                        "href": "https://www.pronostics-courses.fr/php/courses_actuelles/new_courses.php",
                                        "children": [
                                          {
                                            "tag": "span",
                                            "itemprop": "description",
                                            "children": [
                                              false
                                            ]
                                          }
                                        ]
                                      }
                                    ]
                                  }
                                ]
                              },
                              {
                                "tag": "li",
                                "itemprop": "itemListElement",
                                "itemscope": "",
                                "itemtype": "http://schema.org/ListItem",
                                "children": [
                                  {
                                    "tag": "meta",
                                    "itemprop": "position",
                                    "content": "3"
                                  },
                                  {
                                    "tag": "a",
                                    "title": "Quinté du Samedi 27 Novembre 2021",
                                    "itemprop": "url",
                                    "href": "https://www.pronostics-courses.fr/php/courses_nouvelles/pronostics_new_courses,2.html",
                                    "children": [
                                      {
                                        "tag": "span",
                                        "class": "bouton",
                                        "itemprop": "description",
                                        "children": {
                                          "#text": "Quinté du Samedi 27 Novembre 2021"
                                        }
                                      },
                                      false,
                                      {
                                        "tag": "div",
                                        "class": "menu_gauche",
                                        "children": [
                                          {
                                            "tag": "span",
                                            "children": [
                                              {
                                                "tag": "span",
                                                "class": "titre_course",
                                                "children": {
                                                  "#text": "Quinté"
                                                }
                                              },
                                              false,
                                              false
                                            ]
                                          }
                                        ]
                                      }
                                    ]
                                  }
                                ]
                              },
                              {
                                "tag": "li",
                                "itemprop": "itemListElement",
                                "itemscope": "",
                                "itemtype": "http://schema.org/ListItem",
                                "children": [
                                  {
                                    "tag": "meta",
                                    "itemprop": "position",
                                    "content": "4"
                                  },
                                  {
                                    "tag": "a",
                                    "title": "Pick5 du Samedi 27 Novembre 2021",
                                    "itemprop": "url",
                                    "href": "https://www.pronostics-courses.fr/php/courses_nouvelles/pronostics_new_courses,4.html",
                                    "children": [
                                      {
                                        "tag": "span",
                                        "class": "bouton",
                                        "itemprop": "description",
                                        "children": {
                                          "#text": "Pick5 du Samedi 27 Novembre 2021"
                                        }
                                      },
                                      false,
                                      {
                                        "tag": "div",
                                        "class": "menu_gauche",
                                        "children": [
                                          {
                                            "tag": "span",
                                            "children": [
                                              {
                                                "tag": "span",
                                                "class": "titre_course",
                                                "children": {
                                                  "#text": "Pick5"
                                                }
                                              },
                                              false,
                                              false
                                            ]
                                          }
                                        ]
                                      }
                                    ]
                                  }
                                ]
                              },
                              {
                                "tag": "li",
                                "itemprop": "itemListElement",
                                "itemscope": "",
                                "itemtype": "http://schema.org/ListItem",
                                "children": [
                                  {
                                    "tag": "meta",
                                    "itemprop": "position",
                                    "content": "5"
                                  },
                                  {
                                    "tag": "a",
                                    "title": "Pick5 du Samedi 27 Novembre 2021",
                                    "itemprop": "url",
                                    "href": "https://www.pronostics-courses.fr/php/courses_nouvelles/pronostics_new_courses,6.html",
                                    "children": [
                                      {
                                        "tag": "span",
                                        "class": "bouton",
                                        "itemprop": "description",
                                        "children": {
                                          "#text": "Pick5 du Samedi 27 Novembre 2021"
                                        }
                                      },
                                      false,
                                      {
                                        "tag": "div",
                                        "class": "menu_gauche",
                                        "children": [
                                          {
                                            "tag": "span",
                                            "children": [
                                              {
                                                "tag": "span",
                                                "class": "titre_course",
                                                "children": {
                                                  "#text": "Pick5"
                                                }
                                              },
                                              false,
                                              false
                                            ]
                                          }
                                        ]
                                      }
                                    ]
                                  }
                                ]
                              }
                            ]
                          }
                        ]
                      }
                    ]
                  },
                  {
                    "tag": "div",
                    "class": "bloctextebas",
                    "children": [
                      {
                        "tag": "article",
                        "class": "nav_index",
                        "children": [
                          {
                            "tag": "header",
                            "class": "nav_index",
                            "children": [
                              {
                                "tag": "h3",
                                "children": {
                                  "#text": "Voici les Statistiques de Performance de mes Pronostics, depuis le 1er Janvier 2010, avec les Rentabilités réelles incluses. Vous pouvez facilement choisir par Trimestres les périodes d'analyse des Performances : "
                                }
                              }
                            ]
                          },
                          {
                            "tag": "aside",
                            "class": "nav_index",
                            "children": [
                              {
                                "tag": "h4",
                                "children": [
                                  {
                                    "tag": "span",
                                    "itemprop": "item",
                                    "itemscope": "",
                                    "itemtype": "http://schema.org/SiteNavigationElement",
                                    "children": [
                                      {
                                        "tag": "a",
                                        "class": "bouton",
                                        "title": "Statistiques de Performance des Pronostics",
                                        "itemprop": "url",
                                        "href": "https://www.pronostics-courses.fr/php/stats/new_new_affic_stats.php",
                                        "children": [
                                          {
                                            "tag": "span",
                                            "itemprop": "description",
                                            "children": {
                                              "#text": "Statistiques de Performance des Pronostics"
                                            }
                                          }
                                        ]
                                      }
                                    ]
                                  },
                                  false
                                ]
                              }
                            ]
                          }
                        ]
                      }
                    ]
                  }
                ]
              },
              {
                "tag": "div",
                "class": "bloc blocdroite",
                "children": [
                  {
                    "tag": "article",
                    "class": "nav_index",
                    "children": [
                      {
                        "tag": "header",
                        "class": "nav_index",
                        "children": [
                          {
                            "tag": "div",
                            "class": "bloctextehaut",
                            "children": [
                              {
                                "tag": "h2",
                                "children": {
                                  "#text": "Bonjour Mesdames et Messieurs"
                                }
                              }
                            ]
                          }
                        ]
                      },
                      {
                        "tag": "aside",
                        "class": "nav_index",
                        "children": [
                          {
                            "tag": "ul",
                            "class": "bloctextebas",
                            "itemscope": "",
                            "itemtype": "http://schema.org/ItemList",
                            "children": [
                              {
                                "tag": "li",
                                "itemprop": "itemListElement",
                                "itemscope": "",
                                "itemtype": "http://schema.org/ListItem",
                                "children": [
                                  {
                                    "tag": "meta",
                                    "itemprop": "position",
                                    "content": "1"
                                  },
                                  {
                                    "tag": "h3",
                                    "children": {
                                      "#text": "Ce site est destiné à donner des Statistiques Prévisionnelles, des Pronostics et des Historiques Graphiques sur les Courses du lendemain ou de l'après-midi :"
                                    }
                                  },
                                  {
                                    "tag": "h4",
                                    "itemprop": "item",
                                    "itemscope": "",
                                    "itemtype": "http://schema.org/SiteNavigationElement",
                                    "children": [
                                      {
                                        "tag": "a",
                                        "class": "bouton bouton_droit",
                                        "title": "Pronostics Samedi 27 Novembre 2021",
                                        "itemprop": "url",
                                        "href": "https://www.pronostics-courses.fr/php/courses_nouvelles/new_courses.php",
                                        "children": [
                                          {
                                            "tag": "span",
                                            "itemprop": "description",
                                            "children": {
                                              "#text": "Pronostics Samedi 27 Novembre 2021"
                                            }
                                          }
                                        ]
                                      }
                                    ]
                                  }
                                ]
                              },
                              {
                                "tag": "li",
                                "itemprop": "itemListElement",
                                "itemscope": "",
                                "itemtype": "http://schema.org/ListItem",
                                "children": [
                                  {
                                    "tag": "meta",
                                    "itemprop": "position",
                                    "content": "2"
                                  },
                                  {
                                    "tag": "h3",
                                    "children": {
                                      "#text": ", les Courses du soir ou de la veille :"
                                    }
                                  },
                                  {
                                    "tag": "h4",
                                    "itemprop": "item",
                                    "itemscope": "",
                                    "itemtype": "http://schema.org/SiteNavigationElement",
                                    "children": [
                                      {
                                        "tag": "a",
                                        "class": "bouton bouton_droit",
                                        "title": "Pronostics Vendredi 26 Novembre 2021",
                                        "itemprop": "url",
                                        "href": "https://www.pronostics-courses.fr/php/courses_actuelles/new_courses.php",
                                        "children": [
                                          {
                                            "tag": "span",
                                            "itemprop": "description",
                                            "children": {
                                              "#text": "Pronostics Vendredi 26 Novembre 2021"
                                            }
                                          }
                                        ]
                                      }
                                    ]
                                  }
                                ]
                              },
                              {
                                "tag": "li",
                                "itemprop": "itemListElement",
                                "itemscope": "",
                                "itemtype": "http://schema.org/ListItem",
                                "children": [
                                  {
                                    "tag": "meta",
                                    "itemprop": "position",
                                    "content": "3"
                                  },
                                  {
                                    "tag": "h3",
                                    "children": {
                                      "#text": ", ou sur les Courses passées :"
                                    }
                                  },
                                  {
                                    "tag": "div",
                                    "id": "calendar",
                                    "children": [
                                      {
                                        "tag": "table",
                                        "class": "calendrier",
                                        "children": [
                                          {
                                            "tag": "tbody",
                                            "children": [
                                              {
                                                "tag": "tr",
                                                "children": [
                                                  {
                                                    "tag": "th",
                                                    "colspan": "7",
                                                    "children": {
                                                      "#text": "26 Novembre 2021"
                                                    }
                                                  }
                                                ]
                                              },
                                              {
                                                "tag": "tr",
                                                "children": [
                                                  {
                                                    "tag": "th",
                                                    "colspan": "7",
                                                    "children": [
                                                      {
                                                        "tag": "button",
                                                        "class": "disabled",
                                                        "children": {
                                                          "#text": "<<"
                                                        }
                                                      },
                                                      {
                                                        "tag": "form",
                                                        "action": "https://www.pronostics-courses.fr",
                                                        "method": "post",
                                                        "children": [
                                                          {
                                                            "tag": "input",
                                                            "type": "hidden",
                                                            "name": "day",
                                                            "id": "day",
                                                            "value": "26"
                                                          },
                                                          {
                                                            "tag": "input",
                                                            "type": "hidden",
                                                            "name": "month",
                                                            "id": "month",
                                                            "value": "10"
                                                          },
                                                          {
                                                            "tag": "input",
                                                            "type": "hidden",
                                                            "name": "year",
                                                            "id": "year",
                                                            "value": "2021"
                                                          },
                                                          {
                                                            "tag": "input",
                                                            "type": "submit",
                                                            "value": "<"
                                                          }
                                                        ]
                                                      },
                                                      {
                                                        "tag": "button",
                                                        "class": "disabled",
                                                        "children": {
                                                          "#text": ">"
                                                        }
                                                      },
                                                      {
                                                        "tag": "button",
                                                        "class": "disabled",
                                                        "children": {
                                                          "#text": ">>"
                                                        }
                                                      }
                                                    ]
                                                  }
                                                ]
                                              },
                                              {
                                                "tag": "tr",
                                                "children": [
                                                  {
                                                    "tag": "th",
                                                    "children": {
                                                      "#text": "Dim"
                                                    }
                                                  },
                                                  {
                                                    "tag": "th",
                                                    "children": {
                                                      "#text": "Lun"
                                                    }
                                                  },
                                                  {
                                                    "tag": "th",
                                                    "children": {
                                                      "#text": "Mar"
                                                    }
                                                  },
                                                  {
                                                    "tag": "th",
                                                    "children": {
                                                      "#text": "Mer"
                                                    }
                                                  },
                                                  {
                                                    "tag": "th",
                                                    "children": {
                                                      "#text": "Jeu"
                                                    }
                                                  },
                                                  {
                                                    "tag": "th",
                                                    "children": {
                                                      "#text": "Ven"
                                                    }
                                                  },
                                                  {
                                                    "tag": "th",
                                                    "children": {
                                                      "#text": "Sam"
                                                    }
                                                  }
                                                ]
                                              },
                                              {
                                                "tag": "tr",
                                                "children": [
                                                  {
                                                    "XML_ATTRIBUTE_CDATA": "XML_ATTRIBUTE_CDATA"
                                                  },
                                                  {
                                                    "tag": "td",
                                                    "children": [
                                                      {
                                                        "tag": "a",
                                                        "href": "https://www.pronostics-courses.fr/php/courses_anciennes/action_old_courses,1,11,2021.html",
                                                        "children": {
                                                          "#text": "1"
                                                        }
                                                      }
                                                    ]
                                                  },
                                                  {
                                                    "tag": "td",
                                                    "children": [
                                                      {
                                                        "tag": "a",
                                                        "href": "https://www.pronostics-courses.fr/php/courses_anciennes/action_old_courses,2,11,2021.html",
                                                        "children": {
                                                          "#text": "2"
                                                        }
                                                      }
                                                    ]
                                                  },
                                                  {
                                                    "tag": "td",
                                                    "children": [
                                                      {
                                                        "tag": "a",
                                                        "href": "https://www.pronostics-courses.fr/php/courses_anciennes/action_old_courses,3,11,2021.html",
                                                        "children": {
                                                          "#text": "3"
                                                        }
                                                      }
                                                    ]
                                                  },
                                                  {
                                                    "tag": "td",
                                                    "children": [
                                                      {
                                                        "tag": "a",
                                                        "href": "https://www.pronostics-courses.fr/php/courses_anciennes/action_old_courses,4,11,2021.html",
                                                        "children": {
                                                          "#text": "4"
                                                        }
                                                      }
                                                    ]
                                                  },
                                                  {
                                                    "tag": "td",
                                                    "children": [
                                                      {
                                                        "tag": "a",
                                                        "href": "https://www.pronostics-courses.fr/php/courses_anciennes/action_old_courses,5,11,2021.html",
                                                        "children": {
                                                          "#text": "5"
                                                        }
                                                      }
                                                    ]
                                                  },
                                                  {
                                                    "tag": "td",
                                                    "children": [
                                                      {
                                                        "tag": "a",
                                                        "href": "https://www.pronostics-courses.fr/php/courses_anciennes/action_old_courses,6,11,2021.html",
                                                        "children": {
                                                          "#text": "6"
                                                        }
                                                      }
                                                    ]
                                                  }
                                                ]
                                              },
                                              {
                                                "tag": "tr",
                                                "children": [
                                                  {
                                                    "tag": "td",
                                                    "children": [
                                                      {
                                                        "tag": "a",
                                                        "href": "https://www.pronostics-courses.fr/php/courses_anciennes/action_old_courses,7,11,2021.html",
                                                        "children": {
                                                          "#text": "7"
                                                        }
                                                      }
                                                    ]
                                                  },
                                                  {
                                                    "tag": "td",
                                                    "children": [
                                                      {
                                                        "tag": "a",
                                                        "href": "https://www.pronostics-courses.fr/php/courses_anciennes/action_old_courses,8,11,2021.html",
                                                        "children": {
                                                          "#text": "8"
                                                        }
                                                      }
                                                    ]
                                                  },
                                                  {
                                                    "tag": "td",
                                                    "children": [
                                                      {
                                                        "tag": "a",
                                                        "href": "https://www.pronostics-courses.fr/php/courses_anciennes/action_old_courses,9,11,2021.html",
                                                        "children": {
                                                          "#text": "9"
                                                        }
                                                      }
                                                    ]
                                                  },
                                                  {
                                                    "tag": "td",
                                                    "children": [
                                                      {
                                                        "tag": "a",
                                                        "href": "https://www.pronostics-courses.fr/php/courses_anciennes/action_old_courses,10,11,2021.html",
                                                        "children": {
                                                          "#text": "10"
                                                        }
                                                      }
                                                    ]
                                                  },
                                                  {
                                                    "tag": "td",
                                                    "children": [
                                                      {
                                                        "tag": "a",
                                                        "href": "https://www.pronostics-courses.fr/php/courses_anciennes/action_old_courses,11,11,2021.html",
                                                        "children": {
                                                          "#text": "11"
                                                        }
                                                      }
                                                    ]
                                                  },
                                                  {
                                                    "tag": "td",
                                                    "children": [
                                                      {
                                                        "tag": "a",
                                                        "href": "https://www.pronostics-courses.fr/php/courses_anciennes/action_old_courses,12,11,2021.html",
                                                        "children": {
                                                          "#text": "12"
                                                        }
                                                      }
                                                    ]
                                                  },
                                                  {
                                                    "tag": "td",
                                                    "children": [
                                                      {
                                                        "tag": "a",
                                                        "href": "https://www.pronostics-courses.fr/php/courses_anciennes/action_old_courses,13,11,2021.html",
                                                        "children": {
                                                          "#text": "13"
                                                        }
                                                      }
                                                    ]
                                                  }
                                                ]
                                              },
                                              {
                                                "tag": "tr",
                                                "children": [
                                                  {
                                                    "tag": "td",
                                                    "children": [
                                                      {
                                                        "tag": "a",
                                                        "href": "https://www.pronostics-courses.fr/php/courses_anciennes/action_old_courses,14,11,2021.html",
                                                        "children": {
                                                          "#text": "14"
                                                        }
                                                      }
                                                    ]
                                                  },
                                                  {
                                                    "tag": "td",
                                                    "children": [
                                                      {
                                                        "tag": "a",
                                                        "href": "https://www.pronostics-courses.fr/php/courses_anciennes/action_old_courses,15,11,2021.html",
                                                        "children": {
                                                          "#text": "15"
                                                        }
                                                      }
                                                    ]
                                                  },
                                                  {
                                                    "tag": "td",
                                                    "children": [
                                                      {
                                                        "tag": "a",
                                                        "href": "https://www.pronostics-courses.fr/php/courses_anciennes/action_old_courses,16,11,2021.html",
                                                        "children": {
                                                          "#text": "16"
                                                        }
                                                      }
                                                    ]
                                                  },
                                                  {
                                                    "tag": "td",
                                                    "children": [
                                                      {
                                                        "tag": "a",
                                                        "href": "https://www.pronostics-courses.fr/php/courses_anciennes/action_old_courses,17,11,2021.html",
                                                        "children": {
                                                          "#text": "17"
                                                        }
                                                      }
                                                    ]
                                                  },
                                                  {
                                                    "tag": "td",
                                                    "children": [
                                                      {
                                                        "tag": "a",
                                                        "href": "https://www.pronostics-courses.fr/php/courses_anciennes/action_old_courses,18,11,2021.html",
                                                        "children": {
                                                          "#text": "18"
                                                        }
                                                      }
                                                    ]
                                                  },
                                                  {
                                                    "tag": "td",
                                                    "children": [
                                                      {
                                                        "tag": "a",
                                                        "href": "https://www.pronostics-courses.fr/php/courses_anciennes/action_old_courses,19,11,2021.html",
                                                        "children": {
                                                          "#text": "19"
                                                        }
                                                      }
                                                    ]
                                                  },
                                                  {
                                                    "tag": "td",
                                                    "children": [
                                                      {
                                                        "tag": "a",
                                                        "href": "https://www.pronostics-courses.fr/php/courses_anciennes/action_old_courses,20,11,2021.html",
                                                        "children": {
                                                          "#text": "20"
                                                        }
                                                      }
                                                    ]
                                                  }
                                                ]
                                              },
                                              {
                                                "tag": "tr",
                                                "children": [
                                                  {
                                                    "tag": "td",
                                                    "children": [
                                                      {
                                                        "tag": "a",
                                                        "href": "https://www.pronostics-courses.fr/php/courses_anciennes/action_old_courses,21,11,2021.html",
                                                        "children": {
                                                          "#text": "21"
                                                        }
                                                      }
                                                    ]
                                                  },
                                                  {
                                                    "tag": "td",
                                                    "children": [
                                                      {
                                                        "tag": "a",
                                                        "href": "https://www.pronostics-courses.fr/php/courses_anciennes/action_old_courses,22,11,2021.html",
                                                        "children": {
                                                          "#text": "22"
                                                        }
                                                      }
                                                    ]
                                                  },
                                                  {
                                                    "tag": "td",
                                                    "children": [
                                                      {
                                                        "tag": "a",
                                                        "href": "https://www.pronostics-courses.fr/php/courses_anciennes/action_old_courses,23,11,2021.html",
                                                        "children": {
                                                          "#text": "23"
                                                        }
                                                      }
                                                    ]
                                                  },
                                                  {
                                                    "tag": "td",
                                                    "children": [
                                                      {
                                                        "tag": "a",
                                                        "href": "https://www.pronostics-courses.fr/php/courses_anciennes/action_old_courses,24,11,2021.html",
                                                        "children": {
                                                          "#text": "24"
                                                        }
                                                      }
                                                    ]
                                                  },
                                                  {
                                                    "tag": "td",
                                                    "children": [
                                                      {
                                                        "tag": "a",
                                                        "href": "https://www.pronostics-courses.fr/php/courses_anciennes/action_old_courses,25,11,2021.html",
                                                        "children": {
                                                          "#text": "25"
                                                        }
                                                      }
                                                    ]
                                                  },
                                                  {
                                                    "tag": "td",
                                                    "class": "aujourdhui",
                                                    "children": {
                                                      "#text": "26"
                                                    }
                                                  },
                                                  {
                                                    "tag": "td",
                                                    "class": "disabled",
                                                    "children": {
                                                      "#text": "27"
                                                    }
                                                  }
                                                ]
                                              },
                                              {
                                                "tag": "tr",
                                                "children": [
                                                  {
                                                    "tag": "td",
                                                    "class": "disabled",
                                                    "children": {
                                                      "#text": "28"
                                                    }
                                                  },
                                                  {
                                                    "tag": "td",
                                                    "class": "disabled",
                                                    "children": {
                                                      "#text": "29"
                                                    }
                                                  },
                                                  {
                                                    "tag": "td",
                                                    "class": "disabled",
                                                    "children": {
                                                      "#text": "30"
                                                    }
                                                  },
                                                  {
                                                    "XML_ATTRIBUTE_CDATA": "XML_ATTRIBUTE_CDATA"
                                                  },
                                                  {
                                                    "XML_ATTRIBUTE_CDATA": "XML_ATTRIBUTE_CDATA"
                                                  },
                                                  {
                                                    "XML_ATTRIBUTE_CDATA": "XML_ATTRIBUTE_CDATA"
                                                  },
                                                  {
                                                    "XML_ATTRIBUTE_CDATA": "XML_ATTRIBUTE_CDATA"
                                                  }
                                                ]
                                              }
                                            ]
                                          }
                                        ]
                                      }
                                    ]
                                  }
                                ]
                              }
                            ]
                          }
                        ]
                      }
                    ]
                  },
                  {
                    "tag": "article",
                    "class": "nav_index",
                    "children": [
                      {
                        "tag": "ul",
                        "class": "bloctextebas",
                        "itemscope": "",
                        "itemtype": "http://schema.org/ItemList",
                        "children": [
                          {
                            "tag": "li",
                            "itemprop": "itemListElement",
                            "itemscope": "",
                            "itemtype": "http://schema.org/ListItem",
                            "children": [
                              {
                                "tag": "meta",
                                "itemprop": "position",
                                "content": "1"
                              },
                              {
                                "tag": "h3",
                                "children": [
                                  {
                                    "tag": "span",
                                    "itemprop": "item",
                                    "itemscope": "",
                                    "itemtype": "http://schema.org/SiteNavigationElement",
                                    "children": [
                                      {
                                        "tag": "a",
                                        "class": "bouton",
                                        "title": "Paris gagnés sur les deux derniers jours",
                                        "itemprop": "url",
                                        "href": "https://www.pronostics-courses.fr/php/stats/derniers_gagnes.php",
                                        "children": [
                                          {
                                            "tag": "span",
                                            "itemprop": "description",
                                            "children": {
                                              "#text": "Paris gagnés sur les deux derniers jours"
                                            }
                                          }
                                        ]
                                      }
                                    ]
                                  }
                                ]
                              },
                              {
                                "tag": "h4",
                                "children": {
                                  "#text": "Vous pouvez évaluer le niveau de justesse de mes Pronostics, en comparant les Estimations Statistiques, aux Résultats après les Courses. Ces Pronostics sont rigoureusement identiques, à ceux figurant la veille des Courses."
                                }
                              },
                              {
                                "tag": "h4",
                                "children": {
                                  "#text": "Ces statistiques sont calculées automatiquement è partir d'une Base de Données contenant les Arrivées des Courses de Janvier 2010 jusqu'à la date d'hier. "
                                }
                              },
                              {
                                "tag": "h4",
                                "children": [
                                  {
                                    "tag": "a",
                                    "class": "bouton",
                                    "href": "http://www.lescourses.com/",
                                    "title": "Mon site partenaire : LesCourses.com",
                                    "children": [
                                      {
                                        "tag": "span",
                                        "children": {
                                          "#text": "LesCourses.com"
                                        }
                                      }
                                    ]
                                  }
                                ]
                              }
                            ]
                          },
                          {
                            "tag": "li",
                            "itemprop": "itemListElement",
                            "itemscope": "",
                            "itemtype": "http://schema.org/ListItem",
                            "children": [
                              {
                                "tag": "meta",
                                "itemprop": "position",
                                "content": "2"
                              },
                              {
                                "tag": "h3",
                                "children": [
                                  {
                                    "tag": "span",
                                    "itemprop": "item",
                                    "itemscope": "",
                                    "itemtype": "http://schema.org/SiteNavigationElement",
                                    "children": [
                                      {
                                        "tag": "a",
                                        "class": "bouton",
                                        "href": "https://www.pronostics-courses.fr/php/contact/contact.php",
                                        "rel": "nofollow",
                                        "title": "Contact Webmaster",
                                        "itemprop": "url",
                                        "children": [
                                          {
                                            "tag": "span",
                                            "itemprop": "description",
                                            "children": {
                                              "#text": "Contact Webmaster"
                                            }
                                          }
                                        ]
                                      }
                                    ]
                                  }
                                ]
                              }
                            ]
                          }
                        ]
                      }
                    ]
                  }
                ]
              }
            ]
          },
          {
            "tag": "p",
            "aria-hidden": "true"
          },
          {
            "tag": "hr",
            "class": "separation"
          },
          {
            "tag": "p",
            "aria-hidden": "true"
          },
          {
            "tag": "footer",
            "class": "nav_index",
            "children": [
              {
                "tag": "ul",
                "class": "textebas",
                "itemscope": "",
                "itemtype": "http://schema.org/ItemList",
                "children": [
                  {
                    "tag": "li",
                    "itemprop": "itemListElement",
                    "itemscope": "",
                    "itemtype": "http://schema.org/ListItem",
                    "children": [
                      {
                        "tag": "meta",
                        "itemprop": "position",
                        "content": "1"
                      },
                      {
                        "tag": "a",
                        "title": "Pronostics Hippiques",
                        "href": "https://www.webrankinfo.net/cat/491-pronostics-hippiques.htm",
                        "children": {
                          "#text": "\nPronostics Hippiques"
                        }
                      },
                      {
                        "tag": "a",
                        "href": "https://www.webrankinfo.net",
                        "title": "Référencement",
                        "children": {
                          "#text": "Webrankinfo"
                        }
                      }
                    ]
                  },
                  {
                    "tag": "li",
                    "itemprop": "itemListElement",
                    "itemscope": "",
                    "itemtype": "http://schema.org/ListItem",
                    "children": [
                      {
                        "tag": "meta",
                        "itemprop": "position",
                        "content": "2"
                      }
                    ]
                  }
                ]
              },
              {
                "tag": "h4",
                "id": "mentions_legales",
                "itemscope": "",
                "itemtype": "http://schema.org/WebPageElement",
                "children": [
                  {
                    "tag": "span",
                    "itemprop": "about",
                    "itemscope": "",
                    "itemtype": "http://schema.org/SiteNavigationElement",
                    "children": [
                      {
                        "tag": "a",
                        "itemprop": "url",
                        "href": "https://www.pronostics-courses.fr/php/cgu/mentions-legales.html",
                        "title": "Mentions légales du site",
                        "children": [
                          {
                            "tag": "span",
                            "itemprop": "description",
                            "children": {
                              "#text": "Mentions légales du site"
                            }
                          }
                        ]
                      }
                    ]
                  }
                ]
              }
            ]
          },
          {
            "tag": "p",
            "aria-hidden": "true"
          }
        ]
      }
    ]
  }

Certes il y a encore des XML_ATTIBUTE_CDATA non traduits, le parser
n'est pas au point, mais le fichier est valide json.

Mais, comment à partir d'une chaîne json, produire un fichier formatté ?

Merci beaucoup.
 
WRInaute accro
Faire des développements pour moduler le plus de choses, oui c'est l'avantage d'être un dev mais pourquoi coller tout et n'importe quoi dans ce fichier ?
Passer par un fichier externe pour centraliser une langue ? Très bien mais pas du html !
 
WRInaute accro
C'est-à-dire ?

Bonjour rick38

Le fichier joint à mon message, était le fichier formaté.

J'avais la chaîne json, produite par :

PHP:
$htmlParse = new SafeDOMDocument($url);
 
$json = json_encode($htmlParse->array_json);

$json = mb_convert_encoding($json, 'UTF-8', 'HTML-ENTITIES');

$json = str_replace("\/", "/", $json);

echo $json;

Le résultat a été une chaîne json brute sans line feed, que j'ai soumise pour validation à un site de validation , qui la formatée.

Mais je ne sais pas comment formater ( avec lines feed et indentation ) cette chaîne json brute, en php,


Pardon :

PHP:
$json = json_encode($htmlParse->array_json, JSON_PRETTY_PRINT);


Merci beaucoup de ton aide.

Amicalement.
 
Dernière édition:
WRInaute accro
Faire des développements pour moduler le plus de choses, oui c'est l'avantage d'être un dev mais pourquoi coller tout et n'importe quoi dans ce fichier ?
Passer par un fichier externe pour centraliser une langue ? Très bien mais pas du html !


Bonjour passion

Je traduirai toutes les types de pages de mon site en json.

Pour ma PWA, prochaine vitrine de mon site.

Ensuite, suivant les json, je programmerai le PHP côté serveur pour les produire ( à la place du html ), puis je ferai le javascript client.

Je préfère aspirer du json plutôt que du html, car celà me semble plus recta pour une transmission de données.

Merci beaucoup.
 
WRInaute accro
Cà marche.

C'est dans la boîte, j'ai enregistré les json de tous mes types de pages.

Pour infos ( peut-être trop de paramètres ) :

PHP:
$htmlParse = new SafeDOMDocument($url);
$json = json_encode($htmlParse->array_json, JSON_PRETTY_PRINT | JSON_UNESCAPED_UNICODE | JSON_UNESCAPED_LINE_TERMINATORS | JSON_UNESCAPED_SLASHES);
$json = str_replace("\/", "/", $json);
echo $json;
echo "\n\n";


C'est beau comme une enclume. ;)
 
Discussions similaires
Haut