Skip to content

Instantly share code, notes, and snippets.

@rafeekpro
Created June 4, 2019 06:33
Show Gist options
  • Select an option

  • Save rafeekpro/03c6bd1e5d04658fdf3cf76e567dedd4 to your computer and use it in GitHub Desktop.

Select an option

Save rafeekpro/03c6bd1e5d04658fdf3cf76e567dedd4 to your computer and use it in GitHub Desktop.
import requests
import json
domain = "https://mydomain.com"
useragent = 'Mozilla/5.0 (compatible; MSIE 10.0; Windows NT 6.1; WOW64; Trident/6.0)'
s = requests.Session()
url = 'https://sitereview.bluecoat.com/resource/lookup'
postData = {'url': domain, 'captcha': ''}
headers = {'User-Agent': useragent,
'Accept': 'application/json, text/plain, */*',
'Content-Type': 'application/json; charset=UTF-8',
'Referer': 'https://sitereview.bluecoat.com/lookup'}
response = s.post(url, headers=headers, json=postData, verify=False)
responseJSON = json.loads(response.text)
print(responseJSON)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment