interesting way to do it and i'll definitely note that you can do this in the future.
but for further reference, most use-cases are covered by these 3, in ascending amount of browser-like-ness:
requests for python (urllib but not bad, if you're using ruby use httparty)
mechanize (i personally when using mechanize use the ruby version out of preference)
WebDriver (haven't used it before since i've always been able to use mechanize, but it's literally an api for controlling chrome or firefox)