The task is to write a program that makes http (and https) requests to specified URLs and to report on certain properties of the responses it receives.
The version of python used in this project is 3.5.0
Python should come pre-installed on Linux and Mac, but you need at least version 3.
You can check your version in your terminal with python --version
If you don't have python 3 you will need to install it:
How to Install Latest Python On Mac
How to Install Latest Python On Linux
How to Install Latest Python on Windows
If you have the correct version of Python:
- Extract .tar archive
- Install module dependencies (if neccesary).. i.e:
pip install requests
pip install json
Navigate to the directory bbc-challenge
and type:
python main.py
ERROR: "'charmap' codec can't encode character '\u2013' in position 110906: character maps to "
To fix that just type in the following:
chcp 65001
set PYTHONIOENCODING=utf-8