Fork me on GitHub
Jason Antman's Blog
  • About Me
  • AWS
  • Software
  • Hardware
  • DIY / Home Automation / Security
  • Miscellaneous
  • Tags
  • Archives

Python script to check a list of URLs for return code, and final return code if redirected

Date Mon 10 June 2013 Tags http / python / redirect / urllib

Every once in a while I need to add a bunch of redirects in Apache. Here’s a handy, dead simple Python script which takes a list of URLs on STDIN, and for each one prints out either the response code, or, if the response is a redirect, the response …

more ...

  • Recent Posts

    • Python script to check a list of URLs for return code, and final return code if redirected
  • Latest Tweets

    Tweets by j_antman
  • GitHub Repos

    Status updating...

    @jantman on GitHub
  • Links

    • Homepage
    • Resume

© 2013 Jason Antman · Powered by pelican-bootstrap3, Pelican, Bootstrap

Back to top