You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 50 Current »

  • One
  • Two
  • Three
  • Four
  • Five
#!/usr/bin/python
import googlemaps
import json
import sys
import re
f = open('/mit/boojum/Secret/google-map-key', 'r')
key = f.readline().rstrip('\n');
gmaps = googlemaps.Client(key);
home='10 Lester Terrace, Somerville, MA'
places = []
portalfile = sys.argv[1]
f = open(portalfile)
for line in f:
    if '#' not in line[0]: 
        if 'http' in line:
            url = line.split(';')[2]
            geo = url.split('=')[3]
            places.append(geo)
places.append(home)
totalmin = 0

 

 

 

This is stuff which is hidden or not hidden.

 

 

  • No labels