Exemplo n.º 1
0
infile = open("lookup.tmp")

names = []

for line in infile:
    names.append(line.strip())

#shutil.move("lookups/revid.csv","lookups/revid_old.csv")

for name in names:
    for month in range(12,13):
        for year in range(2006,2012):
            # for each combination get revid information and update lookup
            playername = urllib.quote(name)
            print "Processing " + playername + ":" + str(month) +"," + str(year)
            revhelper.updaterevlookup(playername, month, year)
            
#this gets longform revision files based on lookup
print "HOLDUP : Here come all the big files"
revhelper.getrevfiles()

for name in names:
    for month in range(12,13):
        for year in range(2006,2012):
            # for each combination get revid information and update lookup
            playername = urllib.quote(name)
            print "Getting " + playername + ":" + str(month) +"," + str(year)

            imgchar.updateimgcharlookup(playername,month,year)
            traf.updatetraflookup(playername, month, year)
            revs.updaterevslookup(playername, month, year)
Exemplo n.º 2
0
def worker(playername, month, year):
    """thread worker function"""
    print 'Worker: %s' % playername + " at " + str(time.clock())
    revhelper.updaterevlookup(playername, month, year)
    return