please excuse my ignorance of Python. i know enough to be dangerous \n(was able however to make Freevo support my FM tuner with a little hacking).\n\nUltimate goal:\nread N bytes from PATTERN on page A into VARIABLE.\nPOST VARIABLE into TABLE on site B.\nemail VARIABLE to myself.\n\nwhat i have to work with:\n-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\n#!/usr/local/bin/python\n\nfrom urllib import urlopen\nfrom re import search\n\nURL = "[URL]http://wifirouter/WL_WPATable.asp[/URL]"\npattern = "wl_key1 value='*([0-9,a-f,]*)"\ndoc = urlopen(URL).read()\nresult = search(pattern, doc)\nprint result.group(1)\n-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\n\n I'm trying to update the WEP key on a wireless router via script and \nemail the results to myself. this will be run once a week. Site A \nalready generates random keys, so i figure that's a good place to get \nVARIABLE from. The example above gives me the current key of the router.\n What i'm having trouble with is the key on site A (one i wrote myself \n[URL]http://www.hal-pc.org/networking/cgi-bin/wepgen.cgi[/URL] ) provides 128bit \nkeys by default, but i only want to use 64bit (10 characters). so.. \nrather than make it select 64bit and all i figure it would be easier to \nuse the above example for getting the /current/ key, modified it to read \nthe entire 26 character string from site A, but  how do i crop it to \n10 characters.\n  how can i then auto-login to site B (the router's web config via \npop-up dialog box. *not* a form) and then  post VARIABLE and save the \nchanges.\n\n I know this sounds like a lot, but if anyone can provide me with any \nexample code i can maybe modify to fit, or point me to some good \nreference material. all the pages i found on logging into a site \ninvolve ssl and cookies, which, in this case at least, isn't involved here.\n If there is any other info i can provide (ie. sections of relevent \nHTML) then let me know. any assistance you have to offer is greatly \nappreciated.