|
@@ -1,12 +1,18 @@
|
|
|
class TopicGroup(object):
|
|
|
+ """
|
|
|
+ 生成topic,group, platform, mode等信息
|
|
|
+ """
|
|
|
def __init__(self):
|
|
|
self.spider_list = [
|
|
|
("test", "recommend", "test"),
|
|
|
("zhsdm", "recommend", "zhuhaoshiduomo"),
|
|
|
- # ("zchqs", "recommend"),
|
|
|
]
|
|
|
|
|
|
def produce(self):
|
|
|
+ """
|
|
|
+ 工作代码
|
|
|
+ :return: list [{}, {}, {}, {}, {}]
|
|
|
+ """
|
|
|
result = [
|
|
|
{
|
|
|
"topic": "{}_{}_prod".format(i[0], i[1]),
|