Python notebook to scrape PEC from VAT number.
Clone the repository with
git clone https://github.com/AleBitetto/Scraping_PEC.git
From console navigate the cloned folder and create a new environment with:
conda env create -f environment.yml
conda activate scraping_PEC
python -m ipykernel install --user --name scraping_PEC --display-name "Python (Scraping PEC)"
This will create a scraping_PEC
environment and a kernel for Jupyter Notebook called Python (Scraping PEC)
To download data, this notebook relies on selenium
and ChromeDriver
.
This requires a chromedriver
executable which can be downloaded here. Make sure that your Chrome
version is the same as your chromedriver
version.
scraping_PEC
assumes that the chromedriver
executable is located at /WebDriver
in the main folder. To supply a different path, change the variable chromedriver_path
in the notebook.
Simply run the notebook.
Current version works with the Italian language settings and Orbis settings as described in the notebook. Katalon Recorder extension here has been used in order to manually record the steps and convert them into Selenium code.