I am trying to create a python script to scrape a series of subpages on a site and then out put the data to a file. Not sure how to get the variable into the url and then loop through the list. Here is wha I have so far...

```
import httplib2
h = httplib2.Http('.cache')
s = ['one', 'two', 'three']

def getinfo():
    response, content = h.request('https-www.example.com/<list items>/info', headers={'Connection':'keep-alive'})
    print(content)
    print(response)

for q in range(len(s)):
    getinfo()

```