Thread: Python and Inet

    #1
  1. Contributing User
    Devshed Intermediate (1500 - 1999 posts)

    Join Date
    Dec 2004
    Location
    Meriden, Connecticut
    Posts
    1,797
    Rep Power
    155

    Python and Inet


    Can anyone direct me to a link or show me something for Python that works somewhat like Inet does in Visual Basic 6?
  2. #2
  3. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Oct 2004
    Location
    Colorado, USA
    Posts
    68
    Rep Power
    11
    I am no vb expert, but I think you are looking for the functions available in urllib, and urllib2 modules.

    If you are trying to make http/https requests, these are the modules for you.

    Just about any documentation on these modules will give you some simple examples to use for reference.

    ex:
    Code:
    import urllib
    
    conn = urllib.urlopen('http://someurl.com')
    data = conn.read()
    print data
    conn.close()
  4. #3
  5. Banned ;)
    Devshed Supreme Being (6500+ posts)

    Join Date
    Nov 2001
    Location
    Woodland Hills, Los Angeles County, California, USA
    Posts
    9,646
    Rep Power
    4248
    Or you could use my IEC class, if you're planning to run on Windows alone. Let me know if you want the link.
    Up the Irons
    What Would Jimi Do? Smash amps. Burn guitar. Take the groupies home.
    "Death Before Dishonour, my Friends!!" - Bruce D ickinson, Iron Maiden Aug 20, 2005 @ OzzFest
    Down with Sharon Osbourne

    "I wouldn't hire a butcher to fix my car. I also wouldn't hire a marketing firm to build my website." - Nilpo
  6. #4
  7. Contributing User
    Devshed Intermediate (1500 - 1999 posts)

    Join Date
    Dec 2004
    Location
    Meriden, Connecticut
    Posts
    1,797
    Rep Power
    155
    Ya, I want the link. I was considering making my program compatible for mac in the future. But the ftp feature is only run when my computer is running the program.
  8. #5
  9. Banned ;)
    Devshed Supreme Being (6500+ posts)

    Join Date
    Nov 2001
    Location
    Woodland Hills, Los Angeles County, California, USA
    Posts
    9,646
    Rep Power
    4248
    Here it is: http://www.mayukhbose.com/python/IEC/index.php

    Thing is that if you're using it for ftp, you're probably better off using ftplib. It is more portable and lighter as well.

    Comments on this post

    • netytan agrees
    Up the Irons
    What Would Jimi Do? Smash amps. Burn guitar. Take the groupies home.
    "Death Before Dishonour, my Friends!!" - Bruce D ickinson, Iron Maiden Aug 20, 2005 @ OzzFest
    Down with Sharon Osbourne

    "I wouldn't hire a butcher to fix my car. I also wouldn't hire a marketing firm to build my website." - Nilpo
  10. #6
  11. Contributing User
    Devshed Intermediate (1500 - 1999 posts)

    Join Date
    Dec 2004
    Location
    Meriden, Connecticut
    Posts
    1,797
    Rep Power
    155
    Thanks.

IMN logo majestic logo threadwatch logo seochat tools logo