Spaces:
Sleeping
Sleeping
Update network.py
Browse files- network.py +1 -1
network.py
CHANGED
|
@@ -1,7 +1,7 @@
|
|
| 1 |
import httpx
|
| 2 |
import random
|
| 3 |
from bs4 import BeautifulSoup
|
| 4 |
-
from
|
| 5 |
|
| 6 |
async def extract_page_data(url: str, product_name: str, client: httpx.AsyncClient = None) -> tuple:
|
| 7 |
"""Fetches web targets dynamically swapping modern user-agent strings line-by-line to extract pricing indicators"""
|
|
|
|
| 1 |
import httpx
|
| 2 |
import random
|
| 3 |
from bs4 import BeautifulSoup
|
| 4 |
+
from config import USER_AGENTS
|
| 5 |
|
| 6 |
async def extract_page_data(url: str, product_name: str, client: httpx.AsyncClient = None) -> tuple:
|
| 7 |
"""Fetches web targets dynamically swapping modern user-agent strings line-by-line to extract pricing indicators"""
|