Skip to content

Commit f5e62b8

Browse files
Add screenshots folder & increased timeouts
1 parent f243794 commit f5e62b8

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

screenshots/Capture1.PNG

75.2 KB
Loading

screenshots/Capture2.PNG

82.1 KB
Loading

sites/amazon.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,8 @@ async def search_products(self, query: str, num_products: int = 3) -> List[Dict[
1717
search_url = f"{self.base_url}/s?k={quote(query)}"
1818

1919
try:
20-
await self.page.goto(search_url, wait_until='domcontentloaded', timeout=15000)
21-
await self.page.wait_for_selector(".s-desktop-width-max, .s-error-card", timeout=5000)
20+
await self.page.goto(search_url, wait_until='domcontentloaded', timeout=30000)
21+
await self.page.wait_for_selector(".s-desktop-width-max, .s-error-card", timeout=30000)
2222

2323
# Extract all products in one JavaScript execution
2424
products = await self.page.evaluate(f"""

sites/ebay.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,8 @@ async def search_products(self, query: str, num_products: int = 3) -> List[Dict[
1717
search_url = f"{self.base_url}/sch/i.html?_nkw={query}"
1818

1919
try:
20-
await self.page.goto(search_url, wait_until='domcontentloaded', timeout=15000)
21-
await self.page.wait_for_selector("ul.srp-results", timeout=5000)
20+
await self.page.goto(search_url, wait_until='domcontentloaded', timeout=30000)
21+
await self.page.wait_for_selector("ul.srp-results", timeout=3000)
2222

2323
# Extract all products in one JavaScript execution
2424
products = await self.page.evaluate(f"""

0 commit comments

Comments
 (0)