Subversion Repositories SmartDukaan

Rev

Rev 13614 | Blame | Compare with Previous | Last modification | View Log | RSS feed

from dtr.main import getStore, tprint, sourceMap
import traceback



def main():
    for key, val in sourceMap.iteritems():
        try:
            tprint("Iterating through affiliate for", val)
            store = getStore(key)
            if store is not None:
                store.scrapeAffiliate()
        except:
            tprint("Error")
            traceback.print_exc()
if __name__=='__main__':
    main()