Spaces:
Sleeping
Sleeping
Update shopping.py
Browse files- shopping.py +6 -6
shopping.py
CHANGED
|
@@ -5,12 +5,12 @@ import random
|
|
| 5 |
import urllib.parse
|
| 6 |
from bs4 import BeautifulSoup
|
| 7 |
|
| 8 |
-
from
|
| 9 |
-
from
|
| 10 |
-
from
|
| 11 |
-
from
|
| 12 |
-
from
|
| 13 |
-
from
|
| 14 |
|
| 15 |
async def fetch_serpapi_shopping(product_name: str, desired_size: str, client: httpx.AsyncClient, mode: str = "balanced") -> list:
|
| 16 |
"""Queries SerpApi Google Shopping engine for pristine structured retail data"""
|
|
|
|
| 5 |
import urllib.parse
|
| 6 |
from bs4 import BeautifulSoup
|
| 7 |
|
| 8 |
+
from config import SERPAPI_KEY, TAVILY_API_KEY, USER_AGENTS, DDG_SEMAPHORE
|
| 9 |
+
from database import get_base_price, set_base_price
|
| 10 |
+
from security import check_url_safe
|
| 11 |
+
from schema import is_size_mismatched, extract_universal_sizing, clean_google_link, parse_price_locally
|
| 12 |
+
from network import extract_page_data
|
| 13 |
+
from coupons import call_free_llm
|
| 14 |
|
| 15 |
async def fetch_serpapi_shopping(product_name: str, desired_size: str, client: httpx.AsyncClient, mode: str = "balanced") -> list:
|
| 16 |
"""Queries SerpApi Google Shopping engine for pristine structured retail data"""
|