[Tutor] HTML Parsing

Stephen Nelson-Smith sanelson at gmail.com
Mon Apr 21 17:50:27 CEST 2008


Hi,

>  for lineno, line in enumerate(html):

-Epython2.2hasnoenumerate()

Can we code around this?

>   x = line.find("requests/sec")
>   if x >= 0:
>    no_requests_sec = line[3:x]
>    break
>  for lineno, line in enumerate(html[lineno+1:]):
>   x = line.find("requests currently being processed")
>   if x >= 0:
>    no_connections = line[3:x]

That all looks ok.

S.


More information about the Tutor mailing list