I have a long list of URL's that I need my Python script to iterate through. I need it to replace the parameter values in the URL with a certain string, and keep the parameter names the same.
But I have encounted a bit of a problem:
Code:
from urlparse import urlparse
urls = open("/path/to/urls.txt", "r").readlines()
for url in urls:
addr = urlparse(url)
Does the socket module support ICMP? Can I use it to ping? If so how is this done? Or are there any other modules that can send ICMP requests, preferably ones that aren't Scapy? Scapy is so frustrating for me. Thank you.