HTTP requests, HTML Parsing, grouping and aggregation of datasets, ZipFile processing and Excel Workbooks generation.
-
Install Python 3.13:
- Ensure you have Python 3.13 installed on your system. You can download it from the official Python website: https://www.python.org/downloads/
- Verify the installation by opening a terminal or command prompt and typing:
or
python --version
The output should display "Python 3.13.x" (where x is the minor version number).python3 --version
-
Install Requirements:
- Navigate to the directory containing the
requirements.txtfile. - Install the required Python packages using pip:
pip install -r requirements.txt
- Navigate to the directory containing the
-
Navigate to the
srcDirectory:- Open a terminal or command prompt and change the current directory to the
srcdirectory:cd src
- Open a terminal or command prompt and change the current directory to the
-
Run the Main Script:
- Execute the
main.pyscript:python main.py
- Execute the
-
Output:
- The script will create a folder named
mediaunder thesrcdirectory. - The
mediafolder will contain the generated zip file and the excel file.
- The script will create a folder named
-
Navigate to the
srcDirectory (if you are not already there):cd src -
Run Tests:
- To run the tests, use the following command:
pytest
- To run the tests and see the print statements, use the following command:
The
pytest -s
-sflag prevents pytest from capturing the output, allowing you to see anyprint()statements in your code.
- To run the tests, use the following command: