Path: csiph.com!x330-a1.tempe.blueboxinc.net!newsfeed.hal-mli.net!feeder1.hal-mli.net!weretis.net!feeder4.news.weretis.net!feeder.news-service.com!newsfeed.xs4all.nl!newsfeed6.news.xs4all.nl!xs4all!post.news.xs4all.nl!not-for-mail Return-Path: X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org X-Spam-Status: OK 0.035 X-Spam-Evidence: '*H*': 0.93; '*S*': 0.00; 'received:209.85.214.174': 0.13; 'received:mail-iw0-f174.google.com': 0.13; 'wrote:': 0.15; 'ex:': 0.16; 'from:addr:rosuav': 0.16; 'from:name:chris angelico': 0.16; 'url:request': 0.16; 'url:urllib': 0.16; 'mon,': 0.16; 'pm,': 0.16; 'header:In-Reply-To:1': 0.22; 'received:209.85.214': 0.28; 'message-id:@mail.gmail.com': 0.28; 'url:library': 0.31; "won't": 0.32; 'to:addr:python-list': 0.34; 'that,': 0.35; 'accepted': 0.36; 'page': 0.36; 'url:python': 0.37; 'received:google.com': 0.38; 'received:209.85': 0.38; 'url:org': 0.38; 'subject:: ': 0.38; 'url:docs': 0.39; 'to:addr:python.org': 0.39; 'received:209': 0.40; 'browser': 0.61; 'url:3': 0.67; 'browser,': 0.67 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=6LgXxX+a/4a0Bn4AGn4sy5rJzrCEQBRT5NIDkffG9RI=; b=uf5dikZ/PZdAYIEXJR9zHxrTlbWrahHdZlwvVfuUc1OEakVR730DSeIanrARO/NCPG UC+Q1Cgzh0M1E1zs0xmvXAVFYO+tGJ9mfFzQFT428km7qkr3cUL7y6rBzwTtrnrfyCMr StkgaPYnsTzc68yy4aqvm4TKBPQs7fEd/BsDo= MIME-Version: 1.0 In-Reply-To: <39758958-fc2f-4114-a420-d41ce978e277@r28g2000prb.googlegroups.com> References: <39758958-fc2f-4114-a420-d41ce978e277@r28g2000prb.googlegroups.com> Date: Mon, 18 Jul 2011 23:21:35 +1000 Subject: Re: open urls in browser From: Chris Angelico To: python-list@python.org Content-Type: text/plain; charset=ISO-8859-1 X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.12 Precedence: list List-Id: General discussion list for the Python programming language List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Newsgroups: comp.lang.python Message-ID: Lines: 13 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1310995298 news.xs4all.nl 23854 [2001:888:2000:d::a6]:33840 X-Complaints-To: abuse@xs4all.nl Xref: x330-a1.tempe.blueboxinc.net comp.lang.python:9802 On Mon, Jul 18, 2011 at 10:05 PM, srikanth 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