Re: Updating the website for all the broken download links?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Fri, May 2, 2014 at 5:00 AM, scl <scl.gplus@xxxxxxxxx> wrote:

> Hi,
>
> yesterday I came across http://www.gimp.org/develop/
> and clicked the link 'INSTALL'. It refers to
> https://git.gnome.org/browse/gimp/plain/INSTALL,
> which doesn't exist anymore in this form.
> This raised a question: can the link checker also
> detect dead links that don't result in an HTTP
> error but in simply nothing or unreadable garbage?
>
> Kind regards,
>
> Sven


Hi Sven,
If you're inquiring about my link tester then yes it should get it.  The
[get_link_status function][1] is what does the actual checking.  It does a
combination of HTTP HEAD method (so it only grabs the headers instead of
content) as well has a bit of exception handling for other non-HTTP
unexpected responses.  If it can be improved I'm all ears for improving
it.  Also, I'm using python code only in a [main method][2] which means one
could write another script which will import frontend_test.py and take
advantage of that function (using it like a library instead of an
executable).

Also, as Jehan pointed out that [INSTALL file][3] returns HTTP 404 not
found.  So a link checker should catch that.

SAM

[1]:
https://github.com/sag47/chewbotkah/blob/development/frontend_test.py#L38-L83
[2]:
https://github.com/sag47/chewbotkah/blob/development/frontend_test.py#L252
[3]: https://git.gnome.org/browse/gimp/plain/INSTALL
_______________________________________________
gimp-developer-list mailing list
List address:    gimp-developer-list@xxxxxxxxx
List membership: https://mail.gnome.org/mailman/listinfo/gimp-developer-list
List archives:   https://mail.gnome.org/archives/gimp-developer-list




[Index of Archives]     [Video For Linux]     [Photo]     [Yosemite News]     [gtk]     [GIMP for Windows]     [KDE]     [GEGL]     [Gimp's Home]     [Gimp on GUI]     [Gimp on Windows]     [Steve's Art]

  Powered by Linux