The URL that I need to GET from looks something like this:
https://example.com//report.php?file=MyFile¶ms=query=QueryMyFile^SomeParam=x^SomeOtherParam=y^AnotherOne=z
I want to use requests to pass the params; something along the lines of:
base_url = 'https://example.com//report.php'
params =
{ 'SomeParam': x,
'SomeOtherParam': y,
'AnotherOne': z
}
my_file = requests.get(base_url, params=params)
How can I achieve this?