Script Request...
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. -- http://mail.python.org/mailman/listinfo/python-list
Re: Script Request...
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
What is The Eric4 IDE???
I wanted to ask some opinions on the Eric4 Python IDE, It was the second result from google using the search term "Python IDE" (Quotes Included in the search), the first being http://wiki.python.org/moin/IntegratedDevelopmentEnvironments ! I haven't downloaded or installed it yet, since it has the prerequisites of: 1) Python 2.4.0 or better http://www.python.org/download/ 2) Qt 4.2.0 or better (from Trolltech) http://trolltech.com/solutions/solutions-opensource 3) PyQt 4.1.0 or better (from Riverbank) http://www.riverbankcomputing.co.uk/pyqt/index.php 4) QScintilla 2.1 or better (from Riverbank) http://www.riverbankcomputing.co.uk/qscintilla/index.php I see on the Eric4 website ( http://www.die-offenbachs.de/eric/eric4- download.html ) that it is also a commercial product for those not working with OpenSource, so I hope it's safe to assume that it's a good product to use for working with Python. I'd like some other opinions about it before I download and install all the prerequisites. They probably require their own specific configurations. Is there an OpenSource bundle with all the prerequisites for a smoother install? Is there a specific order to install the prerequisites? Thanks in advance for your replies. -- http://mail.python.org/mailman/listinfo/python-list
