Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!newsfeed.xs4all.nl!newsfeed3.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.015 X-Spam-Evidence: '*H*': 0.97; '*S*': 0.00; 'subject:Python': 0.06; 'subject:help': 0.08; 'subject:script': 0.09; 'url:software': 0.09; 'url:download': 0.12; 'fetch': 0.16; 'from:addr:cs': 0.16; 'from:addr:zip.com.au': 0.16; 'from:name:cameron simpson': 0.16; 'message-id:@cskk.homeip.net': 0.16; 'received:211.29': 0.16; 'received:211.29.132': 0.16; 'received:optusnet.com.au': 0.16; 'received:syd.optusnet.com.au': 0.16; 'simpson': 0.16; 'sure.': 0.16; 'wrote:': 0.18; 'header:User-Agent:1': 0.23; 'parse': 0.24; 'cheers,': 0.24; 'header:In-Reply-To:1': 0.27; 'that.': 0.31; 'probably': 0.32; "i'd": 0.34; 'received:com.au': 0.36; 'charset :us-ascii': 0.36; 'received:211': 0.38; 'to:addr:python-list': 0.38; 'to:addr:python.org': 0.39; 'users': 0.40; 'most': 0.60; 'john': 0.61; 'content-disposition:inline': 0.62; "you'll": 0.62; 'email addr:gmail.com': 0.63; 'american': 0.66; 'url:0': 0.67; 'url:4': 0.69; 'internet': 0.71; 'academy': 0.74; 'links,': 0.74 Date: Wed, 31 Jul 2013 07:47:59 +1000 From: Cameron Simpson To: python-list@python.org Subject: Re: Python script help MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <7e9a50d5-3340-4cf0-a3b8-ef1109837529@googlegroups.com> User-Agent: Mutt/1.5.21 (2010-09-15) References: <7e9a50d5-3340-4cf0-a3b8-ef1109837529@googlegroups.com> X-Optus-CM-Score: 0 X-Optus-CM-Analysis: v=2.1 cv=YYGEuWhf c=1 sm=1 tr=0 a=YuQlxtEQCowy2cfE5kc7TA==:117 a=YuQlxtEQCowy2cfE5kc7TA==:17 a=PO7r1zJSAAAA:8 a=LcaDllckn3IA:10 a=kj9zAlcOel0A:10 a=vrnE16BAAAAA:8 a=ZtCCktOnAAAA:8 a=CZ5Ja8ubK4oA:10 a=pGLkceISAAAA:8 a=0x2vhHYrAAAA:8 a=jrpiS6v4n3LgDM1WWJoA:9 a=CjuIK1q_8ugA:10 a=MSl-tDqOz04A:10 X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.15 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: 16 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1375220892 news.xs4all.nl 16010 [2001:888:2000:d::a6]:35182 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:51610 On 30Jul2013 09:12, cool1574@gmail.com wrote: | ** urlib, urlib2 Sure. And I'd use BeautifulSoup to do the parse. You'll need to fetch that. So: urllib[2] to fetch the document and BS to parse it for links, then urllib[2] to fetch the links you want. http://www.crummy.com/software/BeautifulSoup/bs4/download/4.0/ Cheers, -- Cameron Simpson You can be psychotic and still be competent. - John L. Young, American Academy of Psychiatry and the Law on Ted Kaczynski, and probably most internet users