Created
June 4, 2019 06:33
-
-
Save rafeekpro/03c6bd1e5d04658fdf3cf76e567dedd4 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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