middlewares.py 文件源码

python
阅读 19 收藏 0 点赞 0 评论 0

项目:scrapy-rotating-proxies 作者: TeamHG-Memex 项目源码 文件源码
def get_proxy_slot(self, proxy):
        """
        Return downloader slot for a proxy.
        By default it doesn't take port in account, i.e. all proxies with
        the same hostname / ip address share the same slot.
        """
        # FIXME: an option to use website address as a part of slot as well?
        return urlsplit(proxy).hostname
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号