0

I have a problem with a website called www.webhallen.com. I want to put any numbers and character after www.webhallen.com/ for example www.webhallen.com/3459gdfg. I then want to se if that website exist the problem is that the site rederect me to there own 404 page. How can I via requests see if they redirect me?

wovano
  • 4,543
  • 5
  • 22
  • 49
  • Does this answer your question? [Detecting soft 404 redirects in Python](https://stackoverflow.com/questions/20814654/detecting-soft-404-redirects-in-python) – wovano Dec 05 '22 at 16:57

1 Answers1

0

You can check for the response status code. If you get response.status_code as 404. You will have been redirected to there 404 site.

GAP2002
  • 870
  • 4
  • 20