- Debian, Ubuntu
Check that python interpreter is installed, if not - install python.
Install pip from repository or manually from http://pip.readthedocs.org/en/latest/installing.html#install-pip
Install Requests (usually it has to be installed at once with pip, but if not -> pip install requests)
Manually variant -- Install Requests
Install pytest package via command pip install -U pytest
Install via command: sudo pip install redis
how to install and run Redis is described here: http://redis.io/download
-
Run Redis server (database) in screen using:
$ src/redis-server & -
Run the script redis_data.py via command:
python redis_data.py- in order to fill the Redis database with needed information. -
Run the script
py.test requests_task.py
Run the script using this command:
cat datamining.log | python requests_stat.py > datamining_converted.log