Programming Task
This is a simple web scraping API that will grab data from a URL and process it
TASK
Fix the Bugs in the Webscraper.py file
Install Instructions
For testing there is no need for a full install as the program can run locally.
-
Create a virtual environment
$ python -m venv env
-
Activate it
$ source env/bin/activate
You will need to have the following Python libries available. You can use an appropraite package manager to install them
- requests
- pytest
Running the Unittests
You need to make sure the unit tests are all working correctly you can do this with
$ pytest -v
Running the Program
You can run the program and get the output with
... $ python webscraper.py