name mode size
pycrawler 040000
tests 040000
.gitignore 100644 0 kb 100755 0 kb 100755 2 kb
config.yaml 100644 0 kb
crawler 100755 0 kb
deploy 100755 0 kb
kcrawler 100755 0 kb
setup.cfg 100755 0 kb 100755 1 kb
tox.ini 100644 0 kb
# PyCrawl ## Instalation You need first to do a git clone from the repo git clone cd pycrawl After is recommended that you install virtualenv and run your python in a sandbox to avoid dependency hell for that install virtualenv yum install virtualenv #for centos based apt-get install virtualenv #for debian based Inside the directory create the sandbox virtualenv venv #the sandbox will be put inside venv folder source venv/bin/activate #this will activate the sandbox Next you need to install some external dependencies with **pip** pip install kazoo #for zookeeper dependencies pip install kafka-python #for kafka dependencies pip install pyyaml #for yaml file property reading ## Running ### Port scanner After this steps you should be able to run the application by typing in the command line python pycrawl/ #from your main source directory You've got also scripts to automate the spawn of process and their killing, namely crawler kcrawler The **crawler** command spawns threads and the **kcrawler** kills them. The first command need to be parametrized like this ./crawler <number_of_process> <interval_between_process_spawn> ### Whois scanner The whois scanner use the *port scanner* topic and for those ip which had open ports it will make a whois call to fetch more information regarding the host. ### Statistics tool There is a file called ** that will render relevant statistical information that will be collected from the topics A more detailed talk about this project can be read [here](