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