소스 검색

上传读取标题功能

罗俊辉 1 년 전
부모
커밋
05068bbef8
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      process_data.py

+ 1 - 1
process_data.py

@@ -72,7 +72,7 @@ class DataProcessor(object):
         :param video_id: the video id
         :return: tag_list [tag, tag, tag, tag......]
         """
-        sql = f"""SELECT title from crawler_video where id = {video_id};"""
+        sql = f"""SELECT title from wx_video where id = {video_id};"""
         try:
             title = self.client.select(sql)
             keywords_textrank = jieba.analyse.textrank(title, topK=3)