So, I keep getting a '429 too many requests' while running a script. After doing some research, I found that this is because the website it's fetching requires some sort of HTTP header with the request when making multiple requests. I haven't worked in python before, and I can't figure out how to attach a header to the HTTP request in this script? Thank you
Alright. StackExchange asked me to edit to explain how it was different from a similar question. The similar question "How do I send a custom header with urllib2 in a HTTP Request?" was someone asking when they were writing the script from scratch. I can't figure out for the life of me how the person who wrote the script did the request in the first place.