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
middlewares.py 文件源码
python
阅读 19
收藏 0
点赞 0
评论 0
评论列表
文章目录