Hello seniors,

I am trying to build a web spider to classify spam. My question is how
to find if a URL uses redirection (either JavaScript based or 301-307
redirects). Any guidance would be greatly appreciated.

Thanks!
Anirudh Koul