OK, so after the data gathering, what are you doing with it?
The reason I am asking, is because the compilation of the data matters on the type of data we are going to use, and how are we going to use it?
I do not wish to spend time writing code only for you to tell me that doesn't do what you what, or expect. The problem is you have not clearly defined your scope of work.
Please understand, we are volunteers, that can help, but cannot do the work for you.