Setting timeouts to parse webpages using python lxml
Posted
by Saurabh
on Stack Overflow
See other posts from Stack Overflow
or by Saurabh
Published on 2010-05-05T02:48:49Z
Indexed on
2010/05/05
2:58 UTC
Read the original article
Hit count: 277
I am using python lxml library to parse html pages:
import lxml.html
# this might run indefinitely
page = lxml.html.parse('http://stackoverflow.com/')
Is there any way to set timeout for parsing?
© Stack Overflow or respective owner