deedy5 / requests_tor

Multithreading requests via TOR with automatic TOR new identity
MIT License
53 stars 15 forks source link

TypeError: get() got an unexpected keyword argument 'params' #3

Closed MislavSag closed 3 years ago

MislavSag commented 3 years ago

Hi, I have just tried your package. It seems you get request don't accept params, headers and other arguments from requests library. For example this code:

    r = rt.get("https://oss.uredjenazemlja.hr/rest/katHr/parcelInfo",
                    params={
                        "id": 2786835,
                        "status": encode(number, int(12414714730308))
                    },
                    headers={
                        "Origin": "https://www.katastar.hr",
                        "User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/89.0.4389.114 Safari/537.36"
                    }

returns TypeError: get() got an unexpected keyword argument 'params'

deedy5 commented 3 years ago

Thanks for the feedback! Give me a little bit of time.

deedy5 commented 3 years ago

Fixed and uploaded to pypi. https://github.com/deedy5/requests_tor/releases/tag/v0.6 Update requests_tor from pypi:

pip install -U requests_tor