import requests
import json
input = input(" put you data here: ")
url = "https://breachdirectory.p.rapidapi.com/"
querystring = {"func":"auto","term":input}
headers = {
'x-rapidapi-host': "breachdirectory.p.rapidapi.com",
'x-rapidapi-key': "cdc2ac9cf2msh13a3dv713de3c61p1185f5jsncd225a72c5e1"
}
response = requests.request("GET", url, headers=headers, params=querystring)
print(response.text)
data = str(json.loads(response.text))
print(' this is data value' + data)
Asked
Active
Viewed 28 times
1

Luke Woodward
- 63,336
- 16
- 89
- 104

Luis Pereira
- 35
- 3
-
Please edit your question to include the full traceback of the exception you are getting. Right now, looking at your question, it's not obvious what part of your code the exception is being thrown from. – Luke Woodward Oct 16 '21 at 21:19