Web scraper that take a TAX Code and return the PEC address of the company
Project description
iniscrapec
iniscrapec is a simple scraper project that take a TAX Code of a company and return the PEC address of it
Tech
iniscrapec uses a number of open source projects to work properly:
- [pip]==20.2.2
- [beautifulsoup4]~=4.9.1
- [mechanize]~=0.4.5
- [pymongo]~=3.11.0
- [dnspython]~=2.0.0
- [python_dotenv]~=0.14.0
- [setuptools]~=50.3.0
And iniscrapec itself is open source with a public repository on GitHub.
Also it uses a third part service to solve the reCaptcha "I am not a robot"
Installation
iniscrapec requires python 3.7 to run.
How to get it from git
$ git clone https://github.com/riccardopaltrinieri/iniscrapec.git
How to get it from pip
$ pip install iniscrapec
After installation
You need to fill the environment variables in the .env file:
CAP_KEY = "" # The API key given from the site 2capthca.com
DB_USER = "" # The user of the Mongo DB
DB_PWD = "" # The password of the Mongo DB
DATA_SITEKEY = "" # The captcha code as written in the step 2 of the link below
URL = "https://www.inipec.gov.it/cerca-pec/-/pecs/companies" #the gov website where to search the pec
TAX_EXAMPLE = "" # Variable used for testing and debugging
How to run it with a simple [tkinter] gui
$ cd .\path\of\repo\iniscrapec
$ python3 iniscrapec.py
You can also use only the scraper code with
$ cd .\iniscrapec\modules
$ python3 scraper.py
License
MIT
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
File details
Details for the file iniscrapec-0.0.4.tar.gz.
File metadata
- Download URL: iniscrapec-0.0.4.tar.gz
- Upload date:
- Size: 5.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/50.3.0 requests-toolbelt/0.9.1 tqdm/4.48.2 CPython/3.8.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
fc0c7e95f7e046f2f3bcb8bff452bbee82570a988edf6bea40a03b01bb567e02
|
|
| MD5 |
fa965667bf1e4d1c83c2841d38d1f74a
|
|
| BLAKE2b-256 |
89cf020abac912bdb29b260cf7fef692110ccb7bacb99090633a5470a6d1920e
|