Library for obtaining cnpj information via scraping from the receitaws website.
Project description
cnpjinfo
cnpjinfo is a library for obtaining cnpj information via scraping from the receitaws website.
Features
- CNPJ information via receitaws website.
Installation
- Run
pip install cnpjinfo
Exxemple
from cnpjinfo import cnpjinfo
# For one CNPJ
info = cnpjinfo('12345678901234')
nome = info.get('nome')
tel = info.get('telefone')
print (f'Nome: {nome}, Tel: {tel}'))
# For CNPJ list
cnpj_list = [ "05720854000166", "00623904000173", "15436940000103" ]
result = cnpjinfo_list(cnpj_list)
for cnpj in result:
info = cnpjinfo('12345678901234')
nome = info.get('nome')
tel = info.get('telefone')
print (f'Nome: {nome}, Tel: {tel}'))
console output
foo@bar:~$ ./myscript.py
Nome: COMPANY NAME., Tel: (11) 1111-1111
foo@bar:~$
Upgrade
- Run `pip install cnpjinfo --upgrade`
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
cnpjinfo-0.0.3.tar.gz
(3.3 kB
view hashes)