#!/usr/bin/env python
# -*- coding: utf-8 -*-

import hashlib

import config
import indexer_proxy_lib.utils as utils

services_name = utils.parse_searchmap(open('/var/cache/yamail/searchmap.txt', 'r'))
#~ services_name = utils.parse_searchmap(open('searchmap.txt', 'r'))
for service in services_name:
    print 'services_name=%s, service_url=/service/%s' % (service, hashlib.md5('%s %s' % (service, config.SERVICES_SECRET_KEY)).hexdigest())
