https://github.com/btrevizan/nfe_reader
A Nota Fiscal (NF) reader made in Python 3.
https://github.com/btrevizan/nfe_reader
grocery nota-fiscal reader web-scraper
Last synced: 8 months ago
JSON representation
A Nota Fiscal (NF) reader made in Python 3.
- Host: GitHub
- URL: https://github.com/btrevizan/nfe_reader
- Owner: btrevizan
- Created: 2017-10-02T23:07:14.000Z (about 8 years ago)
- Default Branch: master
- Last Pushed: 2017-10-02T23:07:45.000Z (about 8 years ago)
- Last Synced: 2024-12-28T11:32:13.463Z (10 months ago)
- Topics: grocery, nota-fiscal, reader, web-scraper
- Language: Python
- Homepage:
- Size: 3.91 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Grocery List
A Nota Fiscal (NF) reader made in Python 3.
## Usage
```bash
usage: main.py [-h] [-f FILE] [-u URL]optional arguments:
-h, --help show this help message and exit
-f FILE, --file FILE Input filepath.
-u URL, --url URL NF url.
```## Example
```bash
$ python3 main.py -f urls.txt
```You can use with only one URL:
```bash
$ python3 main.py -u https://www.sefaz.rs.gov.br/ASP/AAE_ROOT/NFE/SAT-WEB-NFE-NFC_QRCODE_1.asp?chNFe=43160393015006000970651030000431701166480721&nVersao=100&tpAmb=1&cDest=03325042040&dhEmi=323031362d30332d32385431343a32303a31312d30333a3030&vNF=49.27&vICMS=1.04&digVal=4b4a505a61377366486b59645035754554676c527a366c443336413d&cIdToken=000001&cHashQRCode=9AAD1C95C0F3D4E49132BE771FDED30D775B7010
```There is an example of input file: `urls.txt`.
## Note
This reader was made based on Rio Grande do Sul's Government Web Service for NF-e.The code is very readable and can be used as a data getter for Web Scrapers.