Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #54608

Re: Directory Web Site

Newsgroups comp.lang.python
Date 2013-09-22 19:02 -0700
References <9c1aee48-7d5e-49d3-ae8c-b5d422cecb9b@googlegroups.com> <mailman.251.1379900194.18130.python-list@python.org>
Message-ID <b8754e72-bae8-4460-bf11-0acadaa94015@googlegroups.com> (permalink)
Subject Re: Directory Web Site
From worthingtonclinton@gmail.com

Show all headers | View raw


On Sunday, September 22, 2013 9:36:25 PM UTC-4, Joel Goldstick wrote:
> On Sun, Sep 22, 2013 at 9:14 PM,  <worthingt...@gmail.com> wrote:
> 
> Was hoping to get some tips or advice on scripting a program that would sort through my many links on my directory website and print out to me the ones that are broken or no longer functioning so that I could fix or remove them from the site. Any help, ideas, advice will be greatly appreciated.
> 
> 
> --
> 
> https://mail.python.org/mailman/listinfo/python-list
> 
> 
> 
> 
> This is a python list.  is this python related? what have you tried?  Do you know about beautiful soup or requests?  they can help you I think.  You really need to provide more information for any useful help here
> 
> 
> 
> 
> -- 
> 
> 
> Joel Goldstick
> http://joelgoldstick.com

I'm trying to create a Python script that will search through the url links on my directory website and using a logic statement like, if: (how ever i would establish in python that the url is not broken) then return, elsif: (link is broken) then: print '%s is broken.' (%s being the name of the link). I want the program to perform this on all the links so that I can easily see which links are useless on my website so my page doesn't wind up functionally being difficult and clouded with broken links like every other crappy directory. 

Back to comp.lang.python | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

Directory Web Site worthingtonclinton@gmail.com - 2013-09-22 18:14 -0700
  Re: Directory Web Site Joel Goldstick <joel.goldstick@gmail.com> - 2013-09-22 21:36 -0400
    Re: Directory Web Site worthingtonclinton@gmail.com - 2013-09-22 19:02 -0700
  Re: Directory Web Site Dave Angel <davea@davea.name> - 2013-09-23 01:59 +0000
    Re: Directory Web Site worthingtonclinton@gmail.com - 2013-09-22 19:04 -0700
  Re: Directory Web Site Chris Angelico <rosuav@gmail.com> - 2013-09-23 17:14 +1000

csiph-web