zhangyong 5 月之前
父節點
當前提交
587a9895e2
共有 2 個文件被更改,包括 2 次插入2 次删除
  1. 0 0
      spider/crawler_offline/xng_zh.txt
  2. 2 2
      spider/crawler_offline/xng_zhanghao.py

文件差異過大導致無法顯示
+ 0 - 0
spider/crawler_offline/xng_zh.txt


+ 2 - 2
spider/crawler_offline/xng_zhanghao.py

@@ -166,9 +166,9 @@ class XNGZH(object):
                     with open(file_path, 'r') as file:
                     with open(file_path, 'r') as file:
                         content = file.read()
                         content = file.read()
                     if content and content[-1] != ',':
                     if content and content[-1] != ',':
-                        m_id = ',' + str(m_id)
+                        pq_uid = ',' + str(pq_uid)
                     with open(file_path, 'a') as file:
                     with open(file_path, 'a') as file:
-                        file.write(m_id)
+                        file.write(pq_uid)
                     with open(file_path, 'r') as file:
                     with open(file_path, 'r') as file:
                         content = file.read()
                         content = file.read()
                 time.sleep(1)
                 time.sleep(1)

部分文件因文件數量過多而無法顯示