Requests.get not working with & character

Viewed 1956

I'm doing a requests.get call with the following url:

https://api.datasource.com/apps/ios/ranking?countries=NL&categories=Overall > Kids > 5 & Under&device=ios&ranks=1000

I get an error message with "categories" has an illegal value "Overall which is due to the & sign in Overall > Kids > 5 & Under

What's the best approach for escaping this character?

1 Answers
Related