Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- from urllib2 import Request, urlopen
- request = Request("https://api.emergingthreats.net/v1/ips/80.82.77.000/urls")
- request.add_header("Authorization", "YmNkZTUzMTk1Zjg2YjQ1NzViZWQzMmNiOGQ1ZGRkZjc5MTZiZTI0YjgwODQ3M2Nj")
- result = urlopen(request)
- print result.read()
- Result:
- {"success":true,"response":[]}
- Process finished with exit code 0
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement