What i have so far:
#!/usr/local/bin/python
from urllib import urlopen
from ClientForm import ParseResponse
from re import search
URL = "http://www.hal-pc.org/networking/cgi-bin/wepgen.cgi";
pattern = "*([0-9,a-f,]*)"
doc = urlopen(URL).read()
result = search(pattern, doc)
w
What i have so far:
#!/usr/local/bin/python
from urllib import urlopen
from ClientForm import ParseResponse
from re import search
URL = "http://www.hal-pc.org/networking/cgi-bin/wepgen.cgi";
pattern = "*([0-9,a-f,]*)"
doc = urlopen(URL).read()
result = search(pattern, doc)
w
Max Erickson wrote:
> strings are slicable:
wep64 = wep128[0:10]
sorry for the stupid question. thanks.
--
http://mail.python.org/mailman/listinfo/python-list
Jonathan Ellis wrote:
> "james hal-pc.org" wrote:
>
>> I'm trying to update the WEP key on a wireless router via script and
>>email the results to myself. this will be run once a week.
>
>
> Look up Mechanize (http://wwwsearch.sourceforge.net/mech
Max Erickson wrote:
>>>the entire 26 character string from site A, but [1] how do i
>>>crop it to 10 characters.
>
> strings are slicable:
The only reason i've gotten this far is a basic understanding of syntax and
programming in general :)
care to enlighten me a little on how to do that?
> As
"james hal-pc.org" wrote:
> the entire 26 character string from site A, but [1] how do i crop it to
> 10 characters.
[1] still at a loss on this one, but i can get to it later, unless you've got
any ideas.
> [2] how can i then auto-login to site B (the router
isn't involved here.
If there is any other info i can provide (ie. sections of relevent
HTML) then let me know. any assistance you have to offer is greatly
appreciated.
--
- - james hal-pc.org - -
"Friends don't let friends use Mandrake"
- - - - - - - - - - - - - - -
--
http://mail.python.org/mailman/listinfo/python-list