Summary: This is a python script to check all the links on a single webpage to verify that all links are valid and not 404's.
Download: linkFindersmsV2.py
Make sure the latest python 2.7 is installed on your machine if not get it here and all paths are set correctly on your machine.
Now open a command prompt
navigate to where the linkfindersms.py is located in you directory
It will prompt you for the URL, Enter the URL in this format: http://www.google.com
If something other than a 200 response comes back you can see which links that cause the error by typing the code from the array.
In this example there is a 200 code and a 403 code.
If your on a mac you can use the curl method to see what the response was that give the 0 error
if on PC see this thread on getting curl to work: http://stackoverflow.com/questions/2710748/run-curl-commands-from-windows-console
Then type 'quit' to exit
leave comments of any other ideas you may have or errors in the code.
leave comments of any other ideas you may have or errors in the code.
No comments:
Post a Comment