Path: csiph.com!x330-a1.tempe.blueboxinc.net!usenet.pasdenom.info!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.039 X-Spam-Evidence: '*H*': 0.92; '*S*': 0.00; 'circular': 0.03; 'url:node': 0.07; 'python': 0.08; 'admit': 0.09; 'assumed': 0.09; 'bash': 0.09; 'hierarchical': 0.09; 'frame,': 0.16; 'subject:Create': 0.16; 'workflow': 0.16; 'question.': 0.16; 'wrote:': 0.16; 'appropriate': 0.20; 'seems': 0.20; 'file,': 0.21; 'assume': 0.22; 'header:In-Reply-To:1': 0.22; 'cheers': 0.23; 'appear': 0.23; '(or': 0.23; '+0100,': 0.23; 'produces': 0.23; 'sep': 0.23; 'extract': 0.24; 'expect': 0.25; 'xml': 0.25; 'subject:]': 0.26; 'tools,': 0.28; 'import': 0.28; 'gis': 0.29; 'html,': 0.29; 'url:article': 0.29; 'looks': 0.29; 'script': 0.29; 'fairly': 0.30; 'creator': 0.30; 'parent': 0.30; 'upgrades': 0.30; 'least': 0.31; 'list': 0.32; 'certainly': 0.32; 'does': 0.32; 'source': 0.33; 'it.': 0.33; 'there': 0.33; 'to:addr:python-list': 0.33; 'someone': 0.34; 'header:User-Agent:1': 0.34; '(as': 0.34; 'quite': 0.34; 'rather': 0.35; 'certain': 0.35; 'google': 0.36; 'file': 0.36; 'fri,': 0.36; 'received:au': 0.36; 'using': 0.37; 'run': 0.37; 'but': 0.37; 'something': 0.37; 'open': 0.37; 'could': 0.38; 'should': 0.38; 'subject:: ': 0.39; 'represent': 0.39; 'help': 0.39; 'needed.': 0.39; 'why': 0.39; 'to:addr:python.org': 0.39; 'subject:from': 0.40; 'your': 0.61; 'central': 0.62; 'free': 0.63; 'website': 0.65; 'received:202': 0.66; 'guides': 0.67; 'saw': 0.69; 'anything.': 0.71; 'url:htm': 0.72; 'numerous': 0.73; 'url:page': 0.73; 'offering': 0.75; 'doable': 0.84; 'expects': 0.84; 'url:128': 0.84; 'webmaster': 0.87; 'mine,': 0.91; 'ultimate': 0.96 Date: Fri, 09 Sep 2011 12:09:58 +1000 From: Simon Cropper User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.2.21) Gecko/20110831 Lightning/1.0b2 Thunderbird/3.1.13 MIME-Version: 1.0 To: python-list@python.org Subject: Re: Create an index from a webpage [RANT, DNFTT] References: <1537032.qVoOGUtdWV@PointedEars.de> <4e68db21$0$30002$c3e8da3$5496439d@news.astraweb.com> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - lincpan30.siteportal.com.au X-AntiAbuse: Original Domain - python.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - fossworkflowguides.com 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: 56 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1315534207 news.xs4all.nl 2527 [2001:888:2000:d::a6]:34801 X-Complaints-To: abuse@xs4all.nl Xref: x330-a1.tempe.blueboxinc.net comp.lang.python:12990 On 09/09/11 10:32, Rhodri James wrote: > On Fri, 09 Sep 2011 00:40:42 +0100, Simon Cropper > > Ahem. You should expect a certain amount of ribbing after admitting that > your Google-fu is weak. So is mine, but hey. I did not admit anything. I consider my ability to find this quite good actually. Others assumed that my "Google-fu is weak". > >> 4. If someone is willing to help me, rather than lecture me (or poke >> me to see if they get a response), I would appreciate it. > > The Google Python Sitemap Generator > (http://www.smart-it-consulting.com/article.htm?node=166&page=128, > fourth offering when you google "map a website with Python") looks like > a promising start. At least it produces something in XML -- filtering > that and turning it into HTML should be fairly straightforward. > I saw this in my original search. My conclusions were.. 1. The last update was in 2005. That is 6 years ago. In that time we have had numerous upgrades to HTML, Logs, etc. 2. The script expects to run on the webserver. I don't have the ability to run python on my webserver. 3. There are also a number of dead-links and redirects to Google Webmaster Central / Tools, which then request you submit a sitemap (as I alluded we get into a circular confusing cross-referencing situation) 4. The ultimate product - if you can get the package to work - would be a XML file you would need to massage to extract what you needed. To me this seems like overkill. I assume you could import the parent html file, scrap all the links on the same domain, dump these to a hierarchical list and represent this in HTML using BeautifulSoup or something similar. Certainly doable but considering the shear commonality of this task I don't understand why a simple script does not already exist - hence my original request for assistance. It would appear from the feedback so far this 'forum' is not the most appropriate to ask this question. Consequently, I will take your advice and keep looking... and if I don't find something within a reasonable time frame, just write something myself. -- Cheers Simon Simon Cropper - Open Content Creator / Website Administrator Free and Open Source Software Workflow Guides ------------------------------------------------------------ Introduction http://www.fossworkflowguides.com GIS Packages http://gis.fossworkflowguides.com bash / Python http://scripting.fossworkflowguides.com