A python package that mimics chromes TLS using golang
Instll chromeRequests using pip
pip install chromeRequests
import chromeRequests
chromeRequests.loadLibrary("./library.so") #this is necessary, download from GoLangSource folder.
#get request
response = chromeRequests.get(
"example.com",
headers = {
"foo":"bar",
},
proxy = "http://user:password@host:port" #never tested with passwordless.
)
#post request
response = chromeRequests.post(
"example.com",
headers = {
"foo":"bar",
},
json = {"foo":"bar"},
data = {"foo":"bar"}
)
response.json()
cookies = response.cookies
headers = response.headers
status = response.status_code
text = response.text
#put request
response = chromeRequests.put(
"example.com",
headers = {
"foo":"bar",
},
json = {"foo":"bar"},
data = {"foo":"bar"}
)
#session
session = chromeRequests.Session()
session.setProxy("http://user:password@host:port")
session.headers.update({
"foo":"bar"
})
session.headers.get_dict()
session.cookies.set(name,value)
session.cookies.get_dict()
- Speed Improvement
- Same syntax as pythons Request Library
Contributions are always welcome!
Please adhere to this project's code of conduct
.