import json


def get_spider_cfg(name):
    """
    get parse item configuration of a specific spider.
    :param name: name of spider
    :return: dictionary of configuration
    """
    with open('products_crawler/spider_configs/{0}.json'.format(name), encoding='utf-8') as f:
        return json.load(f)