I am fetching data from a URL using
from urllib2 import urlopen
conn = urlopen(url)
data = conn.read()
When you call
urlopen on a URL, Python makes an HTTP GET request and returns the response; each of these request-response pairs are by nature separate connections. You have to repeat the process for every URL you want to request, although you don't really have to close your urlopen response.