Add files via upload

First Upload
This commit is contained in:
iNocturnis
2022-04-15 17:55:11 -07:00
committed by GitHub
commit e19f68a6a6
16 changed files with 689 additions and 0 deletions

View File

@@ -0,0 +1,14 @@
import pickle
class Response(object):
def __init__(self, resp_dict):
self.url = resp_dict["url"]
self.status = resp_dict["status"]
self.error = resp_dict["error"] if "error" in resp_dict else None
try:
self.raw_response = (
pickle.loads(resp_dict["response"])
if "response" in resp_dict else
None)
except TypeError:
self.raw_response = None