Skip to content

AngDH/chromeRequests

 
 

Repository files navigation

chromeRequests

A python package that mimics chromes TLS using golang

Installation

Instll chromeRequests using pip

  pip install chromeRequests

API Reference

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()

Acknowledgements

Authors

To do

Contributing

Contributions are always welcome!

Please adhere to this project's code of conduct.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Go 45.8%
  • Python 42.0%
  • C 10.3%
  • Shell 1.9%