This repository contains a collection of utilities to fetch data from the Fatture e Corrispettivi website by Agenzia delle Entrate.
Originally, this repository has been created by @claudiopizzillo and forked by @socrat3. The version of the code within this repository is a fork of the code updated by @socrat3.
For more information see also old README file at README-old.md.
Dependencies are defined in requirements.txt
and can be installed with pip
;
just run:
$ pip install -r requirements.txt
The scripts
directory contains the scripts to fetch data from Fatture e
Corrispettivi.
In the following, examples on how to run them.
⚠️ If not specified, dates useDDMMYYYY
format.
$ python scripts/python fec.py \
<FISCAL_CODE> \
<PIN> <PASSWORD> \
<VAT_NUMBER> \
<DATE_FROM> <DATE_TO>
$ python scripts/fec_emesse_dylog.py \
<Codice_entratel_fiscoonline> \
<codice_PIN_entratel_fiscoonline> \
<password_fiscoonline> \
<codice_fiscale_studio_intermediario> \
<DATE_FROM> <DATE_TO> \
<CF_cliente> \
<Partita_IVA_cliente> \
1
$ python scripts/fec_ricevutedisposizione.py \
<Codice_entratel_fiscoonline> \
<codice_PIN_entratel_fiscoonline> \
<password_fiscoonline> \
<codice_fiscale_studio_intermediario> \
<DATE_FROM> <DATE_TO> \
<CF_cliente> \
<Partita_IVA_cliente> \
1
$ python scripts/fec_trasfrontalieremesse.py \
<Codice_entratel_fiscoonline> \
<codice_PIN_entratel_fiscoonline> \
<password_fiscoonline> \
<codice_fiscale_studio_intermediario> \
<DATE_FROM> <DATE_TO> \
<CF_cliente> \
<Partita_IVA_cliente> \
1
$ python scripts/fec_ricevute.py \
<Codice_entratel_fiscoonline> \
<codice_PIN_entratel_fiscoonline> \
<password_fiscoonline> \
<codice_fiscale_studio_intermediario> \
<DATE_FROM> <DATE_TO> \
<CF_cliente> \
<Partita_IVA_cliente> \
1
Thanks to @claudiopizzillo, @socrat3 and Salvatore Crapanzano that, before me, contributed to this code.