Skip to content

Commit ad55f88

Browse files
committed
fix: removedunused imports
1 parent e88a710 commit ad55f88

13 files changed

+22
-25
lines changed

β€Žscrapegraph-py/examples/async/async_crawl_example.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@
1414
import json
1515
import os
1616
import time
17-
from typing import Any, Dict
1817

1918
from dotenv import load_dotenv
2019

β€Žscrapegraph-py/examples/async/async_smartscraper_cookies_example.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
import asyncio
2121
import json
2222
import os
23-
from typing import Dict, Optional
23+
from typing import Dict
2424

2525
from dotenv import load_dotenv
2626
from pydantic import BaseModel, Field

β€Žscrapegraph-py/examples/async/async_smartscraper_pagination_example.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -209,7 +209,7 @@ async def test_pagination_with_different_parameters():
209209
return
210210

211211
try:
212-
client = AsyncClient(api_key=api_key)
212+
AsyncClient(api_key=api_key)
213213
except Exception as e:
214214
print(f"❌ Error initializing client: {e}")
215215
return
@@ -246,7 +246,7 @@ async def test_pagination_with_different_parameters():
246246
try:
247247
# This is just to demonstrate the API call structure
248248
# In a real scenario, you'd make actual API calls
249-
print(f" βœ… Configuration valid")
249+
print(" βœ… Configuration valid")
250250

251251
except Exception as e:
252252
print(f" ❌ Configuration error: {e}")

β€Žscrapegraph-py/examples/async/steps/async_step_by_step_cookies_example.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -224,7 +224,7 @@ def step_7_process_results(result, duration):
224224

225225
# Check for authentication success indicators
226226
if "result" in result:
227-
print(f"\n✨ Authentication successful! Data extracted with cookies")
227+
print("\n✨ Authentication successful! Data extracted with cookies")
228228

229229
elif isinstance(result, list):
230230
print(f"\nβœ… Authentication successful! Extracted {len(result)} items")

β€Žscrapegraph-py/examples/async/steps/async_step_by_step_movements_example.py

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,7 @@ async def async_smart_scraper_movements():
144144
print(
145145
f"⚑ Execution time before timeout: {execution_time:.2f} seconds ({execution_minutes:.2f} minutes)"
146146
)
147-
print(f"⏰ Request timed out after 300 seconds")
147+
print("⏰ Request timed out after 300 seconds")
148148
except httpx.RequestError as e:
149149
end_time = time.time()
150150
execution_time = end_time - start_time
@@ -225,7 +225,7 @@ async def async_markdownify_movements():
225225
print("πŸš€ Starting Async Markdownify with Enhanced Features...")
226226
print(f"🌐 Website URL: {website_url}")
227227
print(f"πŸ“‹ Custom Headers: {len(custom_headers)} headers configured")
228-
print(f"🎯 Goal: Convert website to clean markdown format")
228+
print("🎯 Goal: Convert website to clean markdown format")
229229
print("\n" + "=" * 60)
230230

231231
# Start timer
@@ -277,7 +277,7 @@ async def async_markdownify_movements():
277277
lines = markdown_content.split("\n")
278278
words = len(markdown_content.split())
279279

280-
print(f"πŸ“Š Statistics:")
280+
print("πŸ“Š Statistics:")
281281
print(f" - Total Lines: {len(lines)}")
282282
print(f" - Total Words: {words}")
283283
print(f" - Total Characters: {len(markdown_content)}")
@@ -286,7 +286,7 @@ async def async_markdownify_movements():
286286
)
287287

288288
# Display first 500 characters
289-
print(f"\nπŸ” First 500 characters:")
289+
print("\nπŸ” First 500 characters:")
290290
print("-" * 50)
291291
print(markdown_content[:500])
292292
if len(markdown_content) > 500:
@@ -314,7 +314,7 @@ async def async_markdownify_movements():
314314
print(
315315
f"⚑ Execution time before timeout: {execution_time:.2f} seconds ({execution_minutes:.2f} minutes)"
316316
)
317-
print(f"⏰ Request timed out after 120 seconds")
317+
print("⏰ Request timed out after 120 seconds")
318318
except httpx.RequestError as e:
319319
end_time = time.time()
320320
execution_time = end_time - start_time
@@ -368,7 +368,7 @@ def analyze_markdown_content(markdown_content: str):
368368
Args:
369369
markdown_content: The markdown content to analyze
370370
"""
371-
print(f"\nπŸ” CONTENT ANALYSIS:")
371+
print("\nπŸ” CONTENT ANALYSIS:")
372372
print("-" * 50)
373373

374374
# Count different markdown elements
@@ -385,7 +385,7 @@ def analyze_markdown_content(markdown_content: str):
385385

386386
# Show first few headers if they exist
387387
if headers:
388-
print(f"\nπŸ“‹ First few headers:")
388+
print("\nπŸ“‹ First few headers:")
389389
for i, header in enumerate(headers[:3]):
390390
print(f" {i+1}. {header.strip()}")
391391
if len(headers) > 3:

β€Žscrapegraph-py/examples/async/steps/async_step_by_step_pagination_example.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -206,7 +206,7 @@ def step_6_process_results(result, duration):
206206

207207
# Check for pagination success indicators
208208
if "data" in result:
209-
print(f"\n✨ Pagination successful! Data extracted from multiple pages")
209+
print("\n✨ Pagination successful! Data extracted from multiple pages")
210210

211211
elif isinstance(result, list):
212212
print(f"\nβœ… Pagination successful! Extracted {len(result)} items")

β€Žscrapegraph-py/examples/miscellaneous/cookies_integration_example.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919

2020
import json
2121
import os
22-
from typing import Dict, List, Optional
22+
from typing import Optional
2323

2424
from dotenv import load_dotenv
2525
from pydantic import BaseModel, Field

β€Žscrapegraph-py/examples/sync/crawl_example.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@
1313
import json
1414
import os
1515
import time
16-
from typing import Any, Dict
1716

1817
from dotenv import load_dotenv
1918

β€Žscrapegraph-py/examples/sync/markdownify_movements_example.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ def markdownify_movements():
8282
print("πŸš€ Starting Markdownify with Enhanced Features...")
8383
print(f"🌐 Website URL: {website_url}")
8484
print(f"πŸ“‹ Custom Headers: {len(custom_headers)} headers configured")
85-
print(f"🎯 Goal: Convert website to clean markdown format")
85+
print("🎯 Goal: Convert website to clean markdown format")
8686
print("\n" + "=" * 60)
8787

8888
# Start timer
@@ -133,7 +133,7 @@ def markdownify_movements():
133133
lines = markdown_content.split("\n")
134134
words = len(markdown_content.split())
135135

136-
print(f"πŸ“Š Statistics:")
136+
print("πŸ“Š Statistics:")
137137
print(f" - Total Lines: {len(lines)}")
138138
print(f" - Total Words: {words}")
139139
print(f" - Total Characters: {len(markdown_content)}")
@@ -142,7 +142,7 @@ def markdownify_movements():
142142
)
143143

144144
# Display first 500 characters
145-
print(f"\nπŸ” First 500 characters:")
145+
print("\nπŸ” First 500 characters:")
146146
print("-" * 50)
147147
print(markdown_content[:500])
148148
if len(markdown_content) > 500:
@@ -207,7 +207,7 @@ def analyze_markdown_content(markdown_content: str):
207207
Args:
208208
markdown_content: The markdown content to analyze
209209
"""
210-
print(f"\nπŸ” CONTENT ANALYSIS:")
210+
print("\nπŸ” CONTENT ANALYSIS:")
211211
print("-" * 50)
212212

213213
# Count different markdown elements
@@ -224,7 +224,7 @@ def analyze_markdown_content(markdown_content: str):
224224

225225
# Show first few headers if they exist
226226
if headers:
227-
print(f"\nπŸ“‹ First few headers:")
227+
print("\nπŸ“‹ First few headers:")
228228
for i, header in enumerate(headers[:3]):
229229
print(f" {i+1}. {header.strip()}")
230230
if len(headers) > 3:

β€Žscrapegraph-py/examples/sync/smartscraper_cookies_example.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919

2020
import json
2121
import os
22-
from typing import Dict, Optional
22+
from typing import Dict
2323

2424
from dotenv import load_dotenv
2525
from pydantic import BaseModel, Field

0 commit comments

Comments
Β (0)