Is there any way to get the page title and http status code from just domain?

I am trying to make a script that will get the page title, HTTP status code and content-length from domain. after searching in the web. I only found way to do that by full url. I don’t have the full url. I have the domain (a subdomain to be exact) and its ip.

How do I get the page title, HTTP status code and content-length from just the domain using python?

Answer

So I have been playing around with it a bit and have found an awesome tool that can get full url from just the domain. It can also get HTTP status, content-length, ip, title etc.
It is called httpx
https://github.com/projectdiscovery/httpx

Leave a Reply

Your email address will not be published. Required fields are marked *