Finding primary domain using Python

Viewed 34
1 Answers

You can achieve this with the requests module as follows:

import requests

with requests.Session() as s:
    r = s.get('https://www.yalochat.com')
    r.raise_for_status()
    print(r.url)
Related