I have a bunch of websites, I want to find all the IP addresses that they communicate with while we browse them. For example once we browse Yahoo.com, it contacts several destinations until it is getting loaded.
Is there any library in the C++ or Python that can help me?
One way that I'm thinking about is to get the HTML file of the website and look for the format "src = http://", but it is not quite correct.
You can do that with http, urllib or urllib2.
You have to look for "src=" (images, flash etc.) and for "href=" (hyperlinks).
Why do you think it's not correct?
How to get all IP addresses fetched