Thanks Diez, I found some docs and examples on urllib2. Now how do i search the string I get from urllib2, lets say I put it in "myURL", How do I search for only Numbers and ".'s" in the "#.#.#.#" pattern. That is all I am interested in with all the data retrieved. Just the IP Address from amongst a bunch of data that I have no use of currently.
I would I write a pattern matching function to extract only the IP address from "myURL"? In article <[EMAIL PROTECTED]>, [EMAIL PROTECTED] says... > some one wrote: > > > Hi all, I am not to familiar with python yet and I am wondering if > > someone can write a script that will monitor my DSL modems IP address > > and notify when it changes, its a 2Wire Advanced DSL Modem. I need to > > know when it changes because I am trying to run my own inhouse server > > and have to update my domain records through verio.com. > > > > The script would need to read the text of a web page( on my modem the > > address is http://192.168.0.1/xslt?PAGE=B01&THISPAGE=&NEXTPAGE=B01 ) and > > search for a string containing the IP address. > > > > Can anyone help? > > thanks, I'll keep monitoring this thread. > > Try urllib2 to fetch the data, use either string-search, regular expressions > or even BeautifulSoup to extract the data. Use a cron-job to do that on a > regular base or use module time.sleep() together with an endless loop to > monitor that location periodically. > > Show us your concrete efforts, and we will suggest improvements. > > Diez > -- http://mail.python.org/mailman/listinfo/python-list