Anyone know of a method to check if a given url is alive?
Wesley
Anyone know of a method to check if a given url is alive?
Wesley
If by URL you mean an address that points to an HTTP server you could
try urllib from python's standard library.
On Wed, Jul 30, 2008 at 8:31 AM, Wesley Nitsckie <wesleynitsckie@gmail.com> wrote:
Anyone know of a method to check if a given url is alive?
Wesley
_______________________________________________
wxpython-users mailing list
wxpython-users@lists.wxwidgets.org
http://lists.wxwidgets.org/mailman/listinfo/wxpython-users
I agree, urllib is the way to go.
import urllib
urllib.urlopen("http://gizmoware.net")
urllib.urlopen("http://adsfsadfasdfasdfasdffd.com")
Or if you literally want a ping method, I posted a ping module that works great in pure python on Windows, possibly other OS's:
gizmoware.net/python/
--- On Wed, 7/30/08, Wesley Nitsckie <wesleynitsckie@gmail.com> wrote:
From: Wesley Nitsckie <wesleynitsckie@gmail.com>
Subject: [wxpython-users] Ping Method
To: wxpython-users@lists.wxwidgets.org
Date: Wednesday, July 30, 2008, 9:31 AM
Anyone know of a method to check if a given url is alive?Wesley_______________________________________________
wxpython-users mailing list
wxpython-users@lists.wxwidgets.org
http://lists.wxwidgets.org/mailman/listinfo/wxpython-users
Wesley Nitsckie wrote:
Anyone know of a method to check if a given url is alive?
Here is a script for checking the links in an HTML page. In my IDE (http://luke-sdk.berlios.de) it is run as a separate process with output displayed in a wx.TextCtrl.
Christopher Thoday
Software Engineer
check-links.py (3.93 KB)