Skip to content

Python script made to parse the French "JORF" obtained from https://www.legifrance.gouv.fr/ to look for and obtain all information relative to the decrees dedicated to obtain the French nationality.

Notifications You must be signed in to change notification settings

AlexVillarra/Naturalisation

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

41 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

JORF-reader

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.

Installation

To install from PyPI using pip

pip install JORF-reader

Requirements

Requires the following to be installed: jellyfish = "^0.8.2" py-pdf-parser = "^0.10.0" dateparser = "^1.0.0"

Documentation

Usage

>>> 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'}

About

Python script made to parse the French "JORF" obtained from https://www.legifrance.gouv.fr/ to look for and obtain all information relative to the decrees dedicated to obtain the French nationality.

Resources

Stars

Watchers

Forks

Packages

No packages published