/UFAprovadesVsAvaluades

Forked from: https://gist.github.com/jherna/56099f3a6f58a3e3f30ccfa3ee87d5e5. Script que, a partir de les actes en PDF descarregades de SAGA, compta el total d'UF aprovades i avaluades i calcula la ratio d'aprovades sobre el total en format de percentatge.

Primary LanguagePython

UFAprovadesVsAvaluades

Forked from: https://gist.github.com/jherna/56099f3a6f58a3e3f30ccfa3ee87d5e5.

Script que, a partir de les actes en PDF descarregades de SAGA, compta el total d'UF aprovades i avaluades i calcula la ratio d'aprovades sobre el total en format de percentatge.

Installation

Download the script. Place the PDF in the root folder.

Requeriments

pip install tika

In case you have both Python versions, 2 and 3, installed in your computer:

pip3 install tika

Take into account the first time running the "tika" library it will need to download and install some Java libraries. This process may take a couple of minutes.

Besides, in case you need to use the script in a server, you'll need to download the Java tika server from Apache and it must be running when you use python-tika. Then, the Python-tika module will allow you to make requests to this server from this Python script.

Running

Run from Terminal:

$ python path/to/UFAprovadesVsAvaluades.py path/to/Acta.pdf

In case you have both Python versions, 2 and 3, installed in your computer:

$ python3 path/to/UFAprovadesVsAvaluades.py path/to/Acta.pdf