def url_is_from_spider(url, spider):
    return url_is_from_any_domain(url,
        [spider.name] + list(getattr(spider, 'allowed_domains', [])))
Return True if the url belongs to the given spider
dataset/ETHPy150Open wcong/ants/ants/utils/url.py/url_is_from_spider