|
@@ -383,6 +383,7 @@ class Feishu:
|
|
|
huxinxue = "18832292015"
|
|
|
wuchaoyue = "15712941385"
|
|
|
lijinchao = '18524120540'
|
|
|
+ lierqiang = '13260325783'
|
|
|
|
|
|
if username == "wangkun":
|
|
|
username = wangkun
|
|
@@ -396,6 +397,8 @@ class Feishu:
|
|
|
username = wuchaoyue
|
|
|
elif username == "lijinchao":
|
|
|
username = lijinchao
|
|
|
+ elif username == "lierqiang":
|
|
|
+ username = lierqiang
|
|
|
|
|
|
data = {"mobiles": [username]}
|
|
|
urllib3.disable_warnings()
|
|
@@ -419,150 +422,145 @@ class Feishu:
|
|
|
content = "看一看爬虫表"
|
|
|
sheet_url = "https://w42nne6hzg.feishu.cn/sheets/shtcngRPoDYAi24x52j2nDuHMih"
|
|
|
users = "\n<at id=" + str(cls.get_userid(log_type, "wangkun")) + "></at> <at id=" + str(
|
|
|
- cls.get_userid(log_type, "gaonannan")) + "></at>\n"
|
|
|
+ cls.get_userid(log_type, "lierqiang")) + "></at>\n"
|
|
|
|
|
|
elif crawler == "xiaoniangao_hour":
|
|
|
content = "小年糕_小时级_已下载表"
|
|
|
sheet_url = "https://w42nne6hzg.feishu.cn/sheets/shtcnYxiyQ1wLklo1W5Kdqc9cGh?sheet=yatRv2"
|
|
|
users = "\n<at id=" + str(cls.get_userid(log_type, "wangkun")) + "></at> <at id=" + str(
|
|
|
- cls.get_userid(log_type, "gaonannan")) + "></at>\n"
|
|
|
+ cls.get_userid(log_type, "lierqiang")) + "></at>\n"
|
|
|
elif crawler == "xiaoniangao_person":
|
|
|
content = "小年糕_用户主页_已下载表"
|
|
|
sheet_url = "https://w42nne6hzg.feishu.cn/sheets/shtcnYxiyQ1wLklo1W5Kdqc9cGh?sheet=Wu0CeL"
|
|
|
users = "\n<at id=" + str(cls.get_userid(log_type, "wangkun")) + "></at> <at id=" + str(
|
|
|
- cls.get_userid(log_type, "gaonannan")) + "></at>\n"
|
|
|
+ cls.get_userid(log_type, "lierqiang")) + "></at>\n"
|
|
|
elif crawler == "xiaoniangao_play":
|
|
|
content = "小年糕_播放量_已下载表"
|
|
|
sheet_url = "https://w42nne6hzg.feishu.cn/sheets/shtcnYxiyQ1wLklo1W5Kdqc9cGh?sheet=c85k1C"
|
|
|
users = "\n<at id=" + str(cls.get_userid(log_type, "wangkun")) + "></at> <at id=" + str(
|
|
|
- cls.get_userid(log_type, "gaonannan")) + "></at>\n"
|
|
|
+ cls.get_userid(log_type, "lierqiang")) + "></at>\n"
|
|
|
|
|
|
elif crawler == 'xigua_video':
|
|
|
content = '西瓜视频_用户主页_已下载表'
|
|
|
sheet_url = 'https://w42nne6hzg.feishu.cn/sheets/shtcnvOpx2P8vBXiV91Ot1MKIw8?sheet=e075e9'
|
|
|
users = "\n<at id=" + str(cls.get_userid(log_type, "wangkun")) + "></at> <at id=" + str(
|
|
|
- cls.get_userid(log_type, "wuchaoyue")) + "></at>\n"
|
|
|
+ cls.get_userid(log_type, "lierqiang")) + "></at>\n"
|
|
|
elif crawler == 'xigua_little_video':
|
|
|
content = '西瓜视频_小视频_已下载表'
|
|
|
sheet_url = 'https://w42nne6hzg.feishu.cn/sheets/shtcnvOpx2P8vBXiV91Ot1MKIw8?sheet=hDSDnv'
|
|
|
users = "\n<at id=" + str(cls.get_userid(log_type, "wangkun")) + "></at> <at id=" + str(
|
|
|
- cls.get_userid(log_type, "wuchaoyue")) + "></at>\n"
|
|
|
+ cls.get_userid(log_type, "lierqiang")) + "></at>\n"
|
|
|
|
|
|
elif crawler == 'zhihu_hot':
|
|
|
content = '知乎_热门_已下载表'
|
|
|
sheet_url = 'https://w42nne6hzg.feishu.cn/sheets/shtcnkGPBmGsjaqapgzouuj8MXe?sheet=8871e3'
|
|
|
users = "\n<at id=" + str(cls.get_userid(log_type, "wangkun")) + "></at> <at id=" + str(
|
|
|
- cls.get_userid(log_type, "gaonannan")) + "></at>\n"
|
|
|
+ cls.get_userid(log_type, "lierqiang")) + "></at>\n"
|
|
|
elif crawler == 'zhihu_follow':
|
|
|
content = '知乎_定向_已下载表'
|
|
|
sheet_url = 'https://w42nne6hzg.feishu.cn/sheets/shtcnkGPBmGsjaqapgzouuj8MXe?sheet=4MGuux'
|
|
|
users = "\n<at id=" + str(cls.get_userid(log_type, "wangkun")) + "></at> <at id=" + str(
|
|
|
- cls.get_userid(log_type, "gaonannan")) + "></at>\n"
|
|
|
+ cls.get_userid(log_type, "lierqiang")) + "></at>\n"
|
|
|
|
|
|
elif crawler == 'haokan_hot':
|
|
|
content = '好看_热榜_已下载表'
|
|
|
sheet_url = 'https://w42nne6hzg.feishu.cn/sheets/shtcnaYz8Nhv8q6DbWtlL6rMEBd?sheet=5pWipX'
|
|
|
users = "\n<at id=" + str(cls.get_userid(log_type, "wangkun")) + "></at> <at id=" + str(
|
|
|
- cls.get_userid(log_type, "wuchaoyue")) + "></at>\n"
|
|
|
+ cls.get_userid(log_type, "lierqiang")) + "></at>\n"
|
|
|
elif crawler == 'haokan_channel':
|
|
|
content = '好看_频道_已下载表'
|
|
|
sheet_url = 'https://w42nne6hzg.feishu.cn/sheets/shtcnaYz8Nhv8q6DbWtlL6rMEBd?sheet=7f05d8'
|
|
|
users = "\n<at id=" + str(cls.get_userid(log_type, "wangkun")) + "></at> <at id=" + str(
|
|
|
- cls.get_userid(log_type, "wuchaoyue")) + "></at>\n"
|
|
|
+ cls.get_userid(log_type, "lierqiang")) + "></at>\n"
|
|
|
elif crawler == 'haokan_follow':
|
|
|
content = '好看_定向_已下载表'
|
|
|
sheet_url = 'https://w42nne6hzg.feishu.cn/sheets/shtcnaYz8Nhv8q6DbWtlL6rMEBd?sheet=kVaSjf'
|
|
|
users = "\n<at id=" + str(cls.get_userid(log_type, "wangkun")) + "></at> <at id=" + str(
|
|
|
- cls.get_userid(log_type, "wuchaoyue")) + "></at>\n"
|
|
|
+ cls.get_userid(log_type, "lierqiang")) + "></at>\n"
|
|
|
|
|
|
elif crawler == "music_album":
|
|
|
content = "音乐相册爬虫表"
|
|
|
sheet_url = "https://w42nne6hzg.feishu.cn/sheets/shtcnT6zvmfsYe1g0iv4pt7855g"
|
|
|
users = "\n<at id=" + str(cls.get_userid(log_type, "wangkun")) + "></at> <at id=" + str(
|
|
|
- cls.get_userid(log_type, "gaonannan")) + "></at>\n"
|
|
|
+ cls.get_userid(log_type, "lierqiang")) + "></at>\n"
|
|
|
|
|
|
elif crawler == "ssyy":
|
|
|
content = "胜胜影音爬虫表"
|
|
|
sheet_url = "https://w42nne6hzg.feishu.cn/sheets/shtcnz1ymxHL1u8WHblfqfys7qe"
|
|
|
users = "\n<at id=" + str(cls.get_userid(log_type, "wangkun")) + "></at> <at id=" + str(
|
|
|
- cls.get_userid(log_type, "gaonannan")) + "></at>\n"
|
|
|
+ cls.get_userid(log_type, "lierqiang")) + "></at>\n"
|
|
|
|
|
|
elif crawler == "ggdc":
|
|
|
content = "刚刚都传爬虫表"
|
|
|
sheet_url = "https://w42nne6hzg.feishu.cn/sheets/shtcnTuJgeZU2bc7VaesAqk3QJx"
|
|
|
users = "\n<at id=" + str(cls.get_userid(log_type, "wangkun")) + "></at> <at id=" + str(
|
|
|
- cls.get_userid(log_type, "gaonannan")) + "></at>\n"
|
|
|
+ cls.get_userid(log_type, "lierqiang")) + "></at>\n"
|
|
|
|
|
|
elif crawler == "bszf":
|
|
|
content = "本山祝福爬虫表"
|
|
|
sheet_url = "https://w42nne6hzg.feishu.cn/sheets/shtcnGh2rrsPYM4iVNEBO7OqWrb"
|
|
|
users = "\n<at id=" + str(cls.get_userid(log_type, "wangkun")) + "></at> <at id=" + str(
|
|
|
- cls.get_userid(log_type, "gaonannan")) + "></at>\n"
|
|
|
+ cls.get_userid(log_type, "lierqiang")) + "></at>\n"
|
|
|
|
|
|
elif crawler == "jxxf":
|
|
|
content = "吉祥幸福爬虫表"
|
|
|
sheet_url = "https://w42nne6hzg.feishu.cn/sheets/shtcnSx4nafMbLTq7xl7RHBwHBf"
|
|
|
users = "\n<at id=" + str(cls.get_userid(log_type, "wangkun")) + "></at> <at id=" + str(
|
|
|
- cls.get_userid(log_type, "gaonannan")) + "></at>\n"
|
|
|
+ cls.get_userid(log_type, "lierqiang")) + "></at>\n"
|
|
|
|
|
|
elif crawler == "zmyx":
|
|
|
content = "众妙音信爬虫表"
|
|
|
sheet_url = "https://w42nne6hzg.feishu.cn/sheets/shtcnbZIxstPeM0xshW07b26sve"
|
|
|
users = "\n<at id=" + str(cls.get_userid(log_type, "wangkun")) + "></at> <at id=" + str(
|
|
|
- cls.get_userid(log_type, "gaonannan")) + "></at>\n"
|
|
|
+ cls.get_userid(log_type, "lierqiang")) + "></at>\n"
|
|
|
|
|
|
elif crawler == "zhufumao":
|
|
|
content = "祝福猫视频爬虫表"
|
|
|
sheet_url = "https://w42nne6hzg.feishu.cn/sheets/shtcnXfIJthvkjhI5zlEJq84i6g"
|
|
|
users = "\n<at id=" + str(cls.get_userid(log_type, "wangkun")) + "></at> <at id=" + str(
|
|
|
- cls.get_userid(log_type, "gaonannan")) + "></at>\n"
|
|
|
+ cls.get_userid(log_type, "lierqiang")) + "></at>\n"
|
|
|
|
|
|
elif crawler == "kuaishou_follow":
|
|
|
content = "快手_用户主页_已下载表"
|
|
|
sheet_url = "https://w42nne6hzg.feishu.cn/sheets/shtcnICEfaw9llDNQkKgdymM1xf?sheet=fYdA8F"
|
|
|
- users = "\n<at id=" + str(cls.get_userid(log_type, "wangkun")) + "></at> <at id=" + str(
|
|
|
+ users = "\n<at id=" + str(cls.get_userid(log_type, "lierqiang")) + "></at> <at id=" + str(
|
|
|
cls.get_userid(log_type, "xinxin")) + "></at>\n"
|
|
|
elif crawler == "kuaishou_recommend":
|
|
|
content = "快手_推荐榜_已下载表"
|
|
|
sheet_url = "https://w42nne6hzg.feishu.cn/sheets/shtcnICEfaw9llDNQkKgdymM1xf?sheet=3cd128"
|
|
|
- users = "\n<at id=" + str(cls.get_userid(log_type, "wangkun")) + "></at> <at id=" + str(
|
|
|
+ users = "\n<at id=" + str(cls.get_userid(log_type, "lierqiang")) + "></at> <at id=" + str(
|
|
|
cls.get_userid(log_type, "xinxin")) + "></at>\n"
|
|
|
|
|
|
elif crawler == "ssnnyfq":
|
|
|
content = "岁岁年年迎福气_已下载表"
|
|
|
sheet_url = "https://w42nne6hzg.feishu.cn/sheets/shtcnyJmJSJynHDLLbLTkySfvZe?sheet=290bae"
|
|
|
- users = "\n<at id=" + str(cls.get_userid(log_type, "wangkun")) + "></at> <at id=" + str(
|
|
|
- cls.get_userid(log_type, "xinxin")) + "></at>\n"
|
|
|
+ users = f'\n<at id={str(cls.get_userid(log_type, "wangkun"))}></at> \n<at id={str(cls.get_userid(log_type, "lierqiang"))}></at> <at id={str(cls.get_userid(log_type, "xinxin"))}></at>\n'
|
|
|
|
|
|
elif crawler == "kdjsfq":
|
|
|
content = "看到就是福气_已下载表"
|
|
|
sheet_url = "https://w42nne6hzg.feishu.cn/sheets/shtcnEokBkIjOUPAk8vbbPKnXgb?sheet=ad3b6d"
|
|
|
- users = "\n<at id=" + str(cls.get_userid(log_type, "wangkun")) + "></at> <at id=" + str(
|
|
|
- cls.get_userid(log_type, "xinxin")) + "></at>\n"
|
|
|
+ users = f'\n<at id={str(cls.get_userid(log_type, "wangkun"))}></at> \n<at id={str(cls.get_userid(log_type, "lierqiang"))}></at> <at id={str(cls.get_userid(log_type, "xinxin"))}></at>\n'
|
|
|
|
|
|
elif crawler == "gzh":
|
|
|
content = "公众号爬虫表"
|
|
|
sheet_url = "https://w42nne6hzg.feishu.cn/sheets/shtcnexNXnpDLHhARw0QdiwbYuA"
|
|
|
users = "\n<at id=" + str(cls.get_userid(log_type, "wangkun")) + "></at> <at id=" + str(
|
|
|
- cls.get_userid(log_type, "huxinxue")) + "></at>\n"
|
|
|
+ cls.get_userid(log_type, "lierqiang")) + "></at>\n"
|
|
|
|
|
|
elif crawler == "gongzhonghao_xinxin":
|
|
|
content = "公众号_信欣_爬虫表"
|
|
|
sheet_url = "https://w42nne6hzg.feishu.cn/sheets/shtcna98M2mX7TbivTj9Sb7WKBN?"
|
|
|
- users = "\n<at id=" + str(cls.get_userid(log_type, "wangkun")) + "></at> <at id=" + str(
|
|
|
- cls.get_userid(log_type, "xinxin")) + "></at>\n"
|
|
|
+ users = f'\n<at id={str(cls.get_userid(log_type, "wangkun"))}></at> \n<at id={str(cls.get_userid(log_type, "lierqiang"))}></at> <at id={str(cls.get_userid(log_type, "xinxin"))}></at>\n'
|
|
|
|
|
|
elif crawler == "weiqun":
|
|
|
content = "微群爬虫表"
|
|
|
sheet_url = "https://w42nne6hzg.feishu.cn/sheets/shtcnoKThNquYRweaylMFVyo9Hc"
|
|
|
- users = "\n<at id=" + str(cls.get_userid(log_type, "wangkun")) + "></at> <at id=" + str(
|
|
|
- cls.get_userid(log_type, "xinxin")) + "></at>\n"
|
|
|
+ users = f'\n<at id={str(cls.get_userid(log_type, "wangkun"))}></at> \n<at id={str(cls.get_userid(log_type, "lierqiang"))}></at> <at id={str(cls.get_userid(log_type, "xinxin"))}></at>\n'
|
|
|
|
|
|
elif crawler == "weishi":
|
|
|
content = "微视爬虫表"
|
|
|
sheet_url = "https://w42nne6hzg.feishu.cn/sheets/shtcn5YSWg91JfVGzj0SFZIRRPh"
|
|
|
- users = "\n<at id=" + str(cls.get_userid(log_type, "wangkun")) + "></at> <at id=" + str(
|
|
|
- cls.get_userid(log_type, "xinxin")) + "></at>\n"
|
|
|
+ users = f'\n<at id={str(cls.get_userid(log_type, "wangkun"))}></at> \n<at id={str(cls.get_userid(log_type, "lierqiang"))}></at> <at id={str(cls.get_userid(log_type, "xinxin"))}></at>\n'
|
|
|
|
|
|
elif crawler == "shipinhao_recommend":
|
|
|
content = "视频号_推荐_已下载表"
|
|
@@ -589,7 +587,7 @@ class Feishu:
|
|
|
else:
|
|
|
content = "小年糕爬虫表"
|
|
|
sheet_url = "https://w42nne6hzg.feishu.cn/sheets/shtcnYxiyQ1wLklo1W5Kdqc9cGh"
|
|
|
- users = "\n<at id=" + str(cls.get_userid(log_type, "wangkun")) + "></at>\n"
|
|
|
+ users = f'\n<at id={str(cls.get_userid(log_type, "wangkun"))}></at> \n<at id={str(cls.get_userid(log_type, "lierqiang"))}></at>\n'
|
|
|
|
|
|
data = json.dumps({
|
|
|
"msg_type": "interactive",
|
|
@@ -633,7 +631,7 @@ class Feishu:
|
|
|
|
|
|
|
|
|
if __name__ == "__main__":
|
|
|
- Feishu.bot("bot", "youtube", "别紧张,还是我,测试一下")
|
|
|
+ Feishu.bot("bot", "ssnnyfq", "别紧张,还是我,测试一下")
|
|
|
# print(Feishu.get_userid("shipinhao", "lijinchao"))
|
|
|
|
|
|
pass
|