def get_spider_settings(flask_app_config, spider_scrapy_settings):
    """
    For the given settings for each spider create a scrapy Settings object with
    the common settings spider & its personal settings. Individual spider scrapy
    settings takes priority over global scrapy settings

    Returns:
        Scrapy settings class instance

    .. version 0.3.0:
       Allow settings for individual spiders and global settings
    """
    all_settings = flask_app_config['SCRAPY_SETTINGS']

    if 'ITEM_PIPELINES' not in all_settings:
        all_settings['ITEM_PIPELINES'] = {}

    if flask_app_config['EXPORT_JSON']:
        all_settings['ITEM_PIPELINES']['arachne.pipelines.ExportJSON'] = 100

    if flask_app_config['EXPORT_CSV']:
        all_settings['ITEM_PIPELINES']['arachne.pipelines.ExportCSV'] = 200

    # spider scrapy settings has priority over global scrapy settings
    for setting, _ in all_settings.items():
        if spider_scrapy_settings in setting:
            all_settings[setting].update(spider_scrapy_settings[setting])

    settings = Settings(all_settings)
    return settings
dataset/ETHPy150Open kirankoduru/arachne/arachne/scrapy_utils.py/get_spider_settings/swapped operands of `in`