open urls in browser
Chris Angelico
rosuav at gmail.com
Mon Jul 18 09:21:35 EDT 2011
On Mon, Jul 18, 2011 at 10:05 PM, srikanth <srikanth007m at gmail.com> wrote:
> Ex: http://www.google.com - Pass/Fail.
What do you mean by "Pass" or "Fail"? If you send a URL to a web
browser, all you'll find out is whether or not the browser accepted it
- it won't tell you if the page is valid. If you want that, you don't
need a web browser at all - what you want is a simple URL fetcher,
such as urllib/urllib2.
http://docs.python.org/library/urllib.html
http://docs.python.org/release/3.1.3/library/urllib.request.html
ChrisA
More information about the Python-list
mailing list