Skip to content

Parse definitions from the Schedario napoletano PDF files

License

Notifications You must be signed in to change notification settings

Schedario-napoletano/parser

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

57 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Schedario napoletano (parser)

This repository contains code to extract the definitions from the two PDF files of the Schedario napoletano written by Giuseppe Giacco.

This extracts 23k unique definitions, of which 5k are aliases.

Run

Download both parts of the Schedario as 1.pdf and 2.pdf. Then run:

poetry run python extract.py [<path>].

The output JSON can then be used to feed the website. If <path> is not provided, it defaults to definitions.json.

Advanced usage

The script supports additional options:

poetry run python extract.py [--dry-run] [--diff]
  • --dry-run: don't actually write the definitions in a file
  • --diff: print some diff between the existing definitions (if any) and the new ones. This is useful to see changes when editing the code logic.

About

Parse definitions from the Schedario napoletano PDF files

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published