浏览代码

Less debug messages

Foppe Hemminga 6 年之前
父节点
当前提交
a0e0d3ad2a
共有 2 个文件被更改,包括 3 次插入3 次删除
  1. 2 2
      _bs.py
  2. 1 1
      model.py

+ 2 - 2
_bs.py

@@ -208,10 +208,10 @@ def get_racenet_json(html):
     script = this_soup.find('script', text=pattern)
     json = '{}'
     if script:
-        print('script')
+        # print('script')
         match = pattern.search(script.text)
         if match:
-            print('match')
+            # print('match')
             json = match.group(1)
     # pprint(json)
     return json

+ 1 - 1
model.py

@@ -42,7 +42,7 @@ def scrape_racingaustralia_main_page(row):
 def scrape_racenet_main_page():
     this_url = """https://www.racenet.com.au/updates/scratchings"""
     this_data = _html.get_page(this_url)
-    print(this_data[:50])
+    # print(this_data[:50])
     json = _bs.get_racenet_json(this_data)
     return json