User Profile

Collapse

Profile Sidebar

Collapse
madlax
madlax
Last Activity: Oct 28 '11, 11:00 PM
Joined: Oct 11 '11
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • madlax
    started a topic Python urlparse how to edit parameter values?

    Python urlparse how to edit parameter values?

    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)
    addr...
    See more | Go to post

  • madlax
    started a topic Ping using socket module in Python

    Ping using socket module in Python

    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.
    See more | Go to post
No activity results to display
Show More
Working...