-
Notifications
You must be signed in to change notification settings - Fork 546
Expand file tree
/
Copy pathbase.py
More file actions
43 lines (37 loc) · 797 Bytes
/
Copy pathbase.py
File metadata and controls
43 lines (37 loc) · 797 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
# -*- coding: utf-8 -*-
"""
Created on 2023/7/25 10:03
---------
@summary:
---------
@author: Boris
@email: boris_liu@foxmail.com
"""
import abc
from feapder.utils.log import log
class BaseProxyPool:
@abc.abstractmethod
def get_proxy(self):
"""
获取代理
Returns:
{"http": "xxx", "https": "xxx"}
"""
raise NotImplementedError
@abc.abstractmethod
def del_proxy(self, proxy):
"""
@summary: 删除代理
---------
@param proxy: ip:port
"""
raise NotImplementedError
def tag_proxy(self, **kwargs):
"""
@summary: 标记代理
---------
@param kwargs:
@return:
"""
log.warning("暂不支持标记代理")
pass