|
@@ -109,9 +109,9 @@ class Test:
|
|
|
if response.json()['code'] == -10002:
|
|
|
Common.logger(log_type, crawler).info("该词暂未收录")
|
|
|
# 写飞书
|
|
|
- if word_list[i]['word'] in [x for y in Feishu.get_values_batch(log_type, crawler, "YVuVgQ") for x in y]:
|
|
|
- Common.logger(log_type, crawler).info("该词已存在")
|
|
|
- continue
|
|
|
+ # if word_list[i]['word'] in [x for y in Feishu.get_values_batch(log_type, crawler, "YVuVgQ") for x in y]:
|
|
|
+ # Common.logger(log_type, crawler).info("该词已存在")
|
|
|
+ # continue
|
|
|
Feishu.insert_columns(log_type, crawler, "YVuVgQ", "ROWS", 1, 2)
|
|
|
time.sleep(0.5)
|
|
|
Feishu.update_values(log_type, crawler, "YVuVgQ", "F2:Z2",
|
|
@@ -147,5 +147,5 @@ class Test:
|
|
|
|
|
|
if __name__ == "__main__":
|
|
|
# print(Test.get_words("test", "weixinzhishu"))
|
|
|
- Test.get_score_test("out-1", "weixinzhishu")
|
|
|
+ Test.get_score_test("out", "weixinzhishu")
|
|
|
pass
|