3 ms·
kind of curious as to how this got generated in the first place
by rtpg 12y ago
kind of curious as to how this got generated in the first place
- mackwic 12y agoSame here. Diffs published from the Journal Officiel aren't so easy to parse. I am afraid it could be manually generated, which is a dead end.
- Majestic121 12y agoThe author mention he did it in an afternoon of code, so it's definitely not manually generated : "Voici un petit hack, résultat d'une après-midi de code" I do agree that the technical details would be interesting.
- mackwic 12y agoI don't think it's possible to generate a general parser for the Journal Officiel in an afternoon. It would make the author a _very_ efficient worker.
- masklinn 12y agoIt's probably possible to do that for a crawler of http://www.legifrance.gouv.fr http://www.legifrance.gouv.fr though.
- simlevesque 12y agoHe said in another comment that it's not how he did it.
- markvdb 12y agoMe too. Unfortunately, the author was utterly careless about spelling. That really makes it feel like a quick hack.
- scrollaway 12y agoThe author specifically flags it as a quick hack: > Voici un petit hack, résultat d'une après-midi de code : le code civil sous Git. "Here is a quick hack, the result of an afternoon of coding: the civil code under Git."
- seszett 12y agoThe full civil code text applicable for every date since at least 1817 is available at Legifrance.gouv.fr[1] so I suppose he just wrote a parser to transform each of these pages into plaintext, another one to get a list of all amendments, and commited each different version. [1]http://www.legifrance.gouv.fr/affichCode.do?cidTexte=LEGITEXT000006070721&dateTexte=18170201 http://www.legifrance.gouv.fr/affichCode.do?cidTexte=LEGITEX...