<filename>common/src/main/python/requestmaker.py
import csv, time, random
import urllib2
import sys

all_lines = []

with open('../resources/geocoordinates.csv', 'rb') as csvfile:
    spamreader = csv.reader(csvfile, delimiter='|', quotechar='"')
    for row in spamreader:
        all_lines.append(row)

req_per_sec = 2 if len(sys.argv) == 1 else int(sys.argv[1])
print "Requests per second ", req_per_sec
while(True):
    row_no = random.randint(0, len(all_lines) - 1)
    url = "http://localhost:9000/places" + all_lines[row_no][0]
    print url
    urllib2.urlopen(url).read()
    time.sleep(1.0 / req_per_sec)

<filename>common/src/main/python/requestmaker.py
import csv, time, random
import urllib2
import sys

all_lines = []

with open('../resources/geocoordinates.csv', 'rb') as csvfile:
    spamreader = csv.reader(csvfile, delimiter='|', quotechar='"')
    for row in spamreader:
        all_lines.append(row)

req_per_sec = 2 if len(sys.argv) == 1 else int(sys.argv[1])
print "Requests per second ", req_per_sec
while(True):
    row_no = random.randint(0, len(all_lines) - 1)
    url = "http://localhost:9000/places" + all_lines[row_no][0]
    print url
    urllib2.urlopen(url).read()
    time.sleep(1.0 / req_per_sec)
