I am trying to get some info from google using request.get(url) in python. Obviously after too many requests I got error 429. I want to change my headers so that this doesn’t happen and also I don’t want to use the method of putting time.sleep() to avoid the problem. I just want to know what am I supposed to do to change the headers.
I have also checked other stackoverflow solutions but in those they either tell to use time.sleep() or tell methods that doesn’t specifically work with google servers.
I would really appreciate if someone could help me 🙂