api registro.br
unknown
python
2 years ago
649 B
10
Indexable
import requests import time domains = ['lucasneto.com.br'] emails = [] def req(domain): time.sleep(3) domain = domain.replace('http://','').replace('https://','') api = 'https://rdap.registro.br/domain/'+ domain return requests.get(api,headers={'User-Agent': 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/106.0.0.0 Safari/537.36'}).json() for domain in domains: i = req(domain)['entities'][0] name = i['legalRepresentative'] doc = i['publicIds'][0]['type'] number_doc = i['publicIds'][0]['identifier'] email = i['entities'][0]['vcardArray'][1][3][3]
Editor is loading...