3 ms·
I usually try to avoid working with URLs as bare strings like this, both for readability and correctness (URL encoding is tricky). With ‘requests’ you can do so
by cmckn 5y ago
I usually try to avoid working with URLs as bare strings like this, both for readability and correctness (URL encoding is tricky). With ‘requests’ you can do something like pass a dictionary of your query params and it takes care of forming the actual request URL.
https://docs.python-requests.org/en/latest/user/quickstart/#passing-parameters-in-urls https://docs.python-requests.org/en/latest/user/quickstart/#...