Small python script to parse a pdf from https://www.legifrance.gouv.fr in order to search for all persons that obtained the French nationality within the pdf file. Keeps track of number of persons, name, origin, and department of a specific series (54 series by year).
JORF-reader is intended to be used as a PDF parser to obtain all the data from https://www.legifrance.gouv.fr in order to search for all persons that obtained the French nationality.
To install from PyPI using pip
pip install JORF-reader
Requires the following to be installed:
jellyfish = "^0.8.2"
py-pdf-parser = "^0.10.0"
dateparser = "^1.0.0"
>>> from JORF_reader import JORF_Reader as Reader
>>> example = Reader(serie = "027")
>>> person = example.search_person(first_name = "Alejandro", last_name = "VILLARREAL LARRAURI", known_serie = True)
>>> print(person)
>>> {'VILLARREAL LARRAURI (Alejandro)': {'date': '23/06/2021'}, 'dep': '013', 'country': 'Mexique'}