This commit is contained in:
parent
cdf651b804
commit
e72d1d2aee
4 changed files with 32 additions and 4 deletions
|
@ -2,7 +2,6 @@ from dataclasses import dataclass
|
|||
from decimal import Decimal, ROUND_UP
|
||||
from typing import Dict, Optional, List
|
||||
import logging
|
||||
import re
|
||||
import scrapers
|
||||
import shlex
|
||||
|
||||
|
@ -79,7 +78,7 @@ def update_product_pricings(src):
|
|||
for line in src.split('\n'):
|
||||
try:
|
||||
product = Product.from_line(line)
|
||||
except Exception as err:
|
||||
except Exception:
|
||||
lines_out.append(line)
|
||||
continue
|
||||
|
||||
|
|
|
@ -6,7 +6,6 @@ import json
|
|||
import re
|
||||
import os
|
||||
import requests
|
||||
import subprocess
|
||||
import logging
|
||||
from supermarktconnector.ah import AHConnector
|
||||
from typing import List
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
from scrapers import *
|
||||
from scrapers import ah_get_by_gtin, sligro_get_by_gtin, parse_content_description, Product
|
||||
|
||||
|
||||
def test_scrape_ah():
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue